History

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.

Corentin Labbe committed 6 years ago

Commit b927ddf1 parent 0d94b061 file · +1 −1Browse files

Showing the changes to include/linux (1 of 1 file). Show all

Unified · Split

include/linux/pnp.h+1−1
@@ -379,7 +379,7 @@ struct pnp_id { · 378 unmodified lines
379};379};
380 380
381struct pnp_driver {381struct pnp_driver {
382 char *name;382 const char *name;
383 const struct pnp_device_id *id_table;383 const struct pnp_device_id *id_table;
384 unsigned int flags;384 unsigned int flags;
385 int (*probe) (struct pnp_dev *dev, const struct pnp_device_id *dev_id);385 int (*probe) (struct pnp_dev *dev, const struct pnp_device_id *dev_id);

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t