History

gpio-pca953x: fix gpio_base

gpio_base was set to 0 if no system platform data or open firmware platform data was provided. This led to conflicts, if any other gpiochip with a gpiobase of 0 was instantiated already. Setting it to -1 will automatically use the first one available.

Hartmut Knaack committed 15 years ago

Commit 25fcf2b1 parent 78a43151 file · +1 −0Browse files

Unified · Split

drivers/gpio/gpio-pca953x.c+1−0
@@ -577,6 +577,7 @@ pca953x_get_alt_pdata(struct i2c_client *client, int *gpio_base, int *invert) · 576 unmodified lines
577void577void
578pca953x_get_alt_pdata(struct i2c_client *client, int *gpio_base, int *invert)578pca953x_get_alt_pdata(struct i2c_client *client, int *gpio_base, int *invert)
579{579{
580 *gpio_base = -1;
580}581}
581#endif582#endif
582 583

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t