@@ -1997,7 +1997,7 @@ static int wacom_initialize_remotes(struct wacom *wacom)
1997
1997
spin_lock_init (& remote -> remote_lock );
1998
1998
1999
1999
error = kfifo_alloc (& remote -> remote_fifo ,
2000
- 5 * sizeof (struct wacom_remote_data ),
2000
+ 5 * sizeof (struct wacom_remote_work_data ),
2001
2001
GFP_KERNEL );
2002
2002
if (error ) {
2003
2003
hid_err (wacom -> hdev , "failed allocating remote_fifo\n" );
@@ -2660,17 +2660,18 @@ static void wacom_remote_work(struct work_struct *work)
2660
2660
struct wacom * wacom = container_of (work , struct wacom , remote_work );
2661
2661
struct wacom_remote * remote = wacom -> remote ;
2662
2662
ktime_t kt = ktime_get ();
2663
- struct wacom_remote_data data ;
2663
+ struct wacom_remote_work_data remote_work_data ;
2664
2664
unsigned long flags ;
2665
2665
unsigned int count ;
2666
- u32 serial ;
2666
+ u32 work_serial ;
2667
2667
int i ;
2668
2668
2669
2669
spin_lock_irqsave (& remote -> remote_lock , flags );
2670
2670
2671
- count = kfifo_out (& remote -> remote_fifo , & data , sizeof (data ));
2671
+ count = kfifo_out (& remote -> remote_fifo , & remote_work_data ,
2672
+ sizeof (remote_work_data ));
2672
2673
2673
- if (count != sizeof (data )) {
2674
+ if (count != sizeof (remote_work_data )) {
2674
2675
hid_err (wacom -> hdev ,
2675
2676
"workitem triggered without status available\n" );
2676
2677
spin_unlock_irqrestore (& remote -> remote_lock , flags );
@@ -2683,22 +2684,22 @@ static void wacom_remote_work(struct work_struct *work)
2683
2684
spin_unlock_irqrestore (& remote -> remote_lock , flags );
2684
2685
2685
2686
for (i = 0 ; i < WACOM_MAX_REMOTES ; i ++ ) {
2686
- serial = data .remote [i ].serial ;
2687
- if (serial ) {
2687
+ work_serial = remote_work_data .remote [i ].serial ;
2688
+ if (work_serial ) {
2688
2689
2689
2690
if (kt - remote -> remotes [i ].active_time > WACOM_REMOTE_BATTERY_TIMEOUT
2690
2691
&& remote -> remotes [i ].active_time != 0 )
2691
2692
wacom_remote_destroy_battery (wacom , i );
2692
2693
2693
- if (remote -> remotes [i ].serial == serial ) {
2694
+ if (remote -> remotes [i ].serial == work_serial ) {
2694
2695
wacom_remote_attach_battery (wacom , i );
2695
2696
continue ;
2696
2697
}
2697
2698
2698
2699
if (remote -> remotes [i ].serial )
2699
2700
wacom_remote_destroy_one (wacom , i );
2700
2701
2701
- wacom_remote_create_one (wacom , serial , i );
2702
+ wacom_remote_create_one (wacom , work_serial , i );
2702
2703
2703
2704
} else if (remote -> remotes [i ].serial ) {
2704
2705
wacom_remote_destroy_one (wacom , i );
0 commit comments