i2c: gpio: use DEFINE_SPINLOCK() for spinlock
Subsystems (3)
PATCH 1/1 i2c: gpio: use DEFINE_SPINLOCK() for spinlock
From: Lifu Chen <[email protected]>
spinlock can be initialized automatically with DEFINE_SPINLOCK() rather than explicitly calling spin_lock_init().
Reported-by Hulk Robot <[email protected]>
Signed-off-by Lifu Chen <[email protected]>
--- arch/arm/mach-sa1100/simpad.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-)
arch/arm/mach-sa1100/simpad.c +1 -3
@@ -45,7 +45,7 @@*/ static long cs3_shadow; -static spinlock_t cs3_lock; +static DEFINE_SPINLOCK (cs3_lock);static struct gpio_chip cs3_gpio;long simpad_get_cs3_ro (void )
@@ -379,8 +379,6 @@ static int __init simpad_init(void) {int ret; -spin_lock_init (&cs3_lock); - cs3_gpio.label ="simpad_cs3" ; cs3_gpio.base =SIMPAD_CS3_GPIO_BASE ; cs3_gpio.ngpio =24 ;
Kindly pinging ...
Best Regards,
Chen Lifu
Quoted 36 lines · Chen Lifu
From: Lifu Chen <[email protected]>
spinlock can be initialized automatically with
DEFINE_SPINLOCK()rather than explicitly callingspin_lock_init().Reported-by Hulk Robot <[email protected]>Signed-off-by Lifu Chen <[email protected]>--- arch/arm/mach-sa1100/simpad.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-)arch/arm/mach-sa1100/simpad.c +1
-3@@ -45,7 +45,7 @@*/ static long cs3_shadow; -static spinlock_t cs3_lock; +static DEFINE_SPINLOCK (cs3_lock);static struct gpio_chip cs3_gpio;long simpad_get_cs3_ro (void )@@ -379,8 +379,6 @@ static int __init simpad_init(void) {int ret; -spin_lock_init (&cs3_lock); - cs3_gpio.label ="simpad_cs3" ; cs3_gpio.base =SIMPAD_CS3_GPIO_BASE ; cs3_gpio.ngpio =24 ;.
Quoted 6 lines · chenlifu
Kindly pinging ...
Best Regards,
Chen Lifu在 2021/3/27 17:52, Chen Lifu 写道:
It's to early to start asking for a response. Please wait at least two weeks. (Probably four weeks if the merge window was open).
regards,
dan carpenter