Skip to content

Commit

Permalink
PNP: constify driver name
Browse files Browse the repository at this point in the history
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 <clabbe@baylibre.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
  • Loading branch information
Corentin Labbe authored and Rafael J. Wysocki committed Mar 17, 2020
1 parent 0d94b06 commit b927ddf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/linux/pnp.h
Original file line number Diff line number Diff line change
Expand Up @@ -379,7 +379,7 @@ struct pnp_id {
};

struct pnp_driver {
char *name;
const char *name;
const struct pnp_device_id *id_table;
unsigned int flags;
int (*probe) (struct pnp_dev *dev, const struct pnp_device_id *dev_id);
Expand Down

0 comments on commit b927ddf

Please sign in to comment.