@@ -230,7 +230,7 @@ static long linehandle_set_config(struct linehandle_state *lh,
230
230
return ret ;
231
231
}
232
232
233
- blocking_notifier_call_chain (& desc -> gdev -> notifier ,
233
+ blocking_notifier_call_chain (& desc -> gdev -> line_state_notifier ,
234
234
GPIO_V2_LINE_CHANGED_CONFIG ,
235
235
desc );
236
236
}
@@ -414,7 +414,7 @@ static int linehandle_create(struct gpio_device *gdev, void __user *ip)
414
414
goto out_free_lh ;
415
415
}
416
416
417
- blocking_notifier_call_chain (& desc -> gdev -> notifier ,
417
+ blocking_notifier_call_chain (& desc -> gdev -> line_state_notifier ,
418
418
GPIO_V2_LINE_CHANGED_REQUESTED , desc );
419
419
420
420
dev_dbg (& gdev -> dev , "registered chardev handle for line %d\n" ,
@@ -1407,7 +1407,7 @@ static long linereq_set_config_unlocked(struct linereq *lr,
1407
1407
1408
1408
WRITE_ONCE (line -> edflags , edflags );
1409
1409
1410
- blocking_notifier_call_chain (& desc -> gdev -> notifier ,
1410
+ blocking_notifier_call_chain (& desc -> gdev -> line_state_notifier ,
1411
1411
GPIO_V2_LINE_CHANGED_CONFIG ,
1412
1412
desc );
1413
1413
}
@@ -1720,7 +1720,7 @@ static int linereq_create(struct gpio_device *gdev, void __user *ip)
1720
1720
1721
1721
lr -> lines [i ].edflags = edflags ;
1722
1722
1723
- blocking_notifier_call_chain (& desc -> gdev -> notifier ,
1723
+ blocking_notifier_call_chain (& desc -> gdev -> line_state_notifier ,
1724
1724
GPIO_V2_LINE_CHANGED_REQUESTED , desc );
1725
1725
1726
1726
dev_dbg (& gdev -> dev , "registered chardev handle for line %d\n" ,
@@ -2117,7 +2117,7 @@ static int lineevent_create(struct gpio_device *gdev, void __user *ip)
2117
2117
if (ret )
2118
2118
goto out_free_le ;
2119
2119
2120
- blocking_notifier_call_chain (& desc -> gdev -> notifier ,
2120
+ blocking_notifier_call_chain (& desc -> gdev -> line_state_notifier ,
2121
2121
GPIO_V2_LINE_CHANGED_REQUESTED , desc );
2122
2122
2123
2123
irq = gpiod_to_irq (desc );
@@ -2671,7 +2671,7 @@ static int gpio_chrdev_open(struct inode *inode, struct file *file)
2671
2671
cdev -> gdev = gpio_device_get (gdev );
2672
2672
2673
2673
cdev -> lineinfo_changed_nb .notifier_call = lineinfo_changed_notify ;
2674
- ret = blocking_notifier_chain_register (& gdev -> notifier ,
2674
+ ret = blocking_notifier_chain_register (& gdev -> line_state_notifier ,
2675
2675
& cdev -> lineinfo_changed_nb );
2676
2676
if (ret )
2677
2677
goto out_free_bitmap ;
@@ -2687,7 +2687,7 @@ static int gpio_chrdev_open(struct inode *inode, struct file *file)
2687
2687
return ret ;
2688
2688
2689
2689
out_unregister_notifier :
2690
- blocking_notifier_chain_unregister (& gdev -> notifier ,
2690
+ blocking_notifier_chain_unregister (& gdev -> line_state_notifier ,
2691
2691
& cdev -> lineinfo_changed_nb );
2692
2692
out_free_bitmap :
2693
2693
gpio_device_put (gdev );
@@ -2711,7 +2711,7 @@ static int gpio_chrdev_release(struct inode *inode, struct file *file)
2711
2711
struct gpio_device * gdev = cdev -> gdev ;
2712
2712
2713
2713
bitmap_free (cdev -> watched_lines );
2714
- blocking_notifier_chain_unregister (& gdev -> notifier ,
2714
+ blocking_notifier_chain_unregister (& gdev -> line_state_notifier ,
2715
2715
& cdev -> lineinfo_changed_nb );
2716
2716
gpio_device_put (gdev );
2717
2717
kfree (cdev );
0 commit comments