mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-04-18 20:29:04 +08:00
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 <clabbe@baylibre.com> Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
This commit is contained in:
committed by
Rafael J. Wysocki
parent
0d94b0626c
commit
b927ddf2dd
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user