File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -173,7 +173,7 @@ EXPORT_SYMBOL_GPL(driver_find_device);
173
173
* @drv: driver.
174
174
* @attr: driver attribute descriptor.
175
175
*/
176
- int driver_create_file (struct device_driver * drv ,
176
+ int driver_create_file (const struct device_driver * drv ,
177
177
const struct driver_attribute * attr )
178
178
{
179
179
int error ;
@@ -191,7 +191,7 @@ EXPORT_SYMBOL_GPL(driver_create_file);
191
191
* @drv: driver.
192
192
* @attr: driver attribute descriptor.
193
193
*/
194
- void driver_remove_file (struct device_driver * drv ,
194
+ void driver_remove_file (const struct device_driver * drv ,
195
195
const struct driver_attribute * attr )
196
196
{
197
197
if (drv )
Original file line number Diff line number Diff line change @@ -146,9 +146,9 @@ struct driver_attribute {
146
146
#define DRIVER_ATTR_WO (_name ) \
147
147
struct driver_attribute driver_attr_##_name = __ATTR_WO(_name)
148
148
149
- int __must_check driver_create_file (struct device_driver * driver ,
149
+ int __must_check driver_create_file (const struct device_driver * driver ,
150
150
const struct driver_attribute * attr );
151
- void driver_remove_file (struct device_driver * driver ,
151
+ void driver_remove_file (const struct device_driver * driver ,
152
152
const struct driver_attribute * attr );
153
153
154
154
int driver_set_override (struct device * dev , const char * * override ,
You can’t perform that action at this time.
0 commit comments