gpio: pca953x: Staticise pca953x_get_altdata()
It's not used outside of the driver so doesn't need to be exported, and sparse notices this and complains about it. Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
This commit is contained in:
parent
cfcfc9eca2
commit
404ba2b8f6
1 changed files with 2 additions and 2 deletions
|
@ -546,7 +546,7 @@ static void pca953x_irq_teardown(struct pca953x_chip *chip)
|
||||||
* Translate OpenFirmware node properties into platform_data
|
* Translate OpenFirmware node properties into platform_data
|
||||||
* WARNING: This is DEPRECATED and will be removed eventually!
|
* WARNING: This is DEPRECATED and will be removed eventually!
|
||||||
*/
|
*/
|
||||||
void
|
static void
|
||||||
pca953x_get_alt_pdata(struct i2c_client *client, int *gpio_base, int *invert)
|
pca953x_get_alt_pdata(struct i2c_client *client, int *gpio_base, int *invert)
|
||||||
{
|
{
|
||||||
struct device_node *node;
|
struct device_node *node;
|
||||||
|
@ -574,7 +574,7 @@ pca953x_get_alt_pdata(struct i2c_client *client, int *gpio_base, int *invert)
|
||||||
*invert = *val;
|
*invert = *val;
|
||||||
}
|
}
|
||||||
#else
|
#else
|
||||||
void
|
static void
|
||||||
pca953x_get_alt_pdata(struct i2c_client *client, int *gpio_base, int *invert)
|
pca953x_get_alt_pdata(struct i2c_client *client, int *gpio_base, int *invert)
|
||||||
{
|
{
|
||||||
*gpio_base = -1;
|
*gpio_base = -1;
|
||||||
|
|
Loading…
Add table
Reference in a new issue