@@ -421,7 +421,9 @@ static int pca953x_gpio_get_value(struct gpio_chip *gc, unsigned off)
421
421
ret = regmap_read (chip -> regmap , inreg , & reg_val );
422
422
mutex_unlock (& chip -> i2c_lock );
423
423
if (ret < 0 ) {
424
- /* NOTE: diagnostic already emitted; that's all we should
424
+ /*
425
+ * NOTE:
426
+ * diagnostic already emitted; that's all we should
425
427
* do unless gpio_*_value_cansleep() calls become different
426
428
* from their nonsleeping siblings (and report faults).
427
429
*/
@@ -736,8 +738,7 @@ static irqreturn_t pca953x_irq_handler(int irq, void *devid)
736
738
return IRQ_HANDLED ;
737
739
}
738
740
739
- static int pca953x_irq_setup (struct pca953x_chip * chip ,
740
- int irq_base )
741
+ static int pca953x_irq_setup (struct pca953x_chip * chip , int irq_base )
741
742
{
742
743
struct i2c_client * client = chip -> client ;
743
744
struct irq_chip * irq_chip = & chip -> irq_chip ;
@@ -787,9 +788,9 @@ static int pca953x_irq_setup(struct pca953x_chip *chip,
787
788
irq_chip -> irq_set_type = pca953x_irq_set_type ;
788
789
irq_chip -> irq_shutdown = pca953x_irq_shutdown ;
789
790
790
- ret = gpiochip_irqchip_add_nested (& chip -> gpio_chip , irq_chip ,
791
- irq_base , handle_simple_irq ,
792
- IRQ_TYPE_NONE );
791
+ ret = gpiochip_irqchip_add_nested (& chip -> gpio_chip , irq_chip ,
792
+ irq_base , handle_simple_irq ,
793
+ IRQ_TYPE_NONE );
793
794
if (ret ) {
794
795
dev_err (& client -> dev ,
795
796
"could not connect irqchip to gpiochip\n" );
@@ -863,7 +864,7 @@ static int device_pca957x_init(struct pca953x_chip *chip, u32 invert)
863
864
static const struct of_device_id pca953x_dt_ids [];
864
865
865
866
static int pca953x_probe (struct i2c_client * client ,
866
- const struct i2c_device_id * i2c_id )
867
+ const struct i2c_device_id * i2c_id )
867
868
{
868
869
struct pca953x_platform_data * pdata ;
869
870
struct pca953x_chip * chip ;
@@ -872,8 +873,7 @@ static int pca953x_probe(struct i2c_client *client,
872
873
u32 invert = 0 ;
873
874
struct regulator * reg ;
874
875
875
- chip = devm_kzalloc (& client -> dev ,
876
- sizeof (struct pca953x_chip ), GFP_KERNEL );
876
+ chip = devm_kzalloc (& client -> dev , sizeof (* chip ), GFP_KERNEL );
877
877
if (chip == NULL )
878
878
return - ENOMEM ;
879
879
@@ -987,7 +987,7 @@ static int pca953x_probe(struct i2c_client *client,
987
987
988
988
if (pdata && pdata -> setup ) {
989
989
ret = pdata -> setup (client , chip -> gpio_chip .base ,
990
- chip -> gpio_chip .ngpio , pdata -> context );
990
+ chip -> gpio_chip .ngpio , pdata -> context );
991
991
if (ret < 0 )
992
992
dev_warn (& client -> dev , "setup failed, %d\n" , ret );
993
993
}
@@ -1007,7 +1007,7 @@ static int pca953x_remove(struct i2c_client *client)
1007
1007
1008
1008
if (pdata && pdata -> teardown ) {
1009
1009
ret = pdata -> teardown (client , chip -> gpio_chip .base ,
1010
- chip -> gpio_chip .ngpio , pdata -> context );
1010
+ chip -> gpio_chip .ngpio , pdata -> context );
1011
1011
if (ret < 0 )
1012
1012
dev_err (& client -> dev , "teardown failed, %d\n" , ret );
1013
1013
} else {
0 commit comments