struct pnp_driver has name set as char* instead of const char* like platform_driver, pci_driver, usb_driver, etc... Let's unify a bit by setting name as const char*. Furthermore, all users of this structures set name from already const data.
Showing the changes to include/linux (1 of 1 file). Show all
Unified · Split
| @@ -379,7 +379,7 @@ struct pnp_id { · 378 unmodified lines | ||
| 379 | 379 | }; |
| 380 | 380 | |
| 381 | 381 | struct pnp_driver { |
| 382 | − char *name; | |
| 382 | + const char *name; | |
| 383 | 383 | const struct pnp_device_id *id_table; |
| 384 | 384 | unsigned int flags; |
| 385 | 385 | int (*probe) (struct pnp_dev *dev, const struct pnp_device_id *dev_id); |