Skip to content

Commit b927ddf

Browse files
montjoierafaeljw
authored andcommitted
PNP: constify driver name
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. Signed-off-by: Corentin Labbe <[email protected]> Signed-off-by: Rafael J. Wysocki <[email protected]>
1 parent 0d94b06 commit b927ddf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

include/linux/pnp.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -379,7 +379,7 @@ struct pnp_id {
379379
};
380380

381381
struct pnp_driver {
382-
char *name;
382+
const char *name;
383383
const struct pnp_device_id *id_table;
384384
unsigned int flags;
385385
int (*probe) (struct pnp_dev *dev, const struct pnp_device_id *dev_id);

0 commit comments

Comments
 (0)