File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -110,10 +110,10 @@ void dio_unregister_driver(struct dio_driver *drv)
110110 * and 0 if there is no match.
111111 */
112112
113- static int dio_bus_match (struct device * dev , struct device_driver * drv )
113+ static int dio_bus_match (struct device * dev , const struct device_driver * drv )
114114{
115115 struct dio_dev * d = to_dio_dev (dev );
116- struct dio_driver * dio_drv = to_dio_driver (drv );
116+ const struct dio_driver * dio_drv = to_dio_driver (drv );
117117 const struct dio_device_id * ids = dio_drv -> id_table ;
118118
119119 if (!ids )
Original file line number Diff line number Diff line change @@ -93,7 +93,7 @@ struct dio_driver {
9393 struct device_driver driver ;
9494};
9595
96- #define to_dio_driver (drv ) container_of (drv, struct dio_driver, driver)
96+ #define to_dio_driver (drv ) container_of_const (drv, struct dio_driver, driver)
9797
9898/* DIO/DIO-II boards all have the following 8bit registers.
9999 * These are offsets from the base of the device.
You can’t perform that action at this time.
0 commit comments