From 0d94b0626cea43fd592127f3dd33916c344b3746 Mon Sep 17 00:00:00 2001 From: Corentin Labbe Date: Mon, 24 Feb 2020 20:00:07 +0000 Subject: PNP: add missing include/linux/pnp.h to MAINTAINERS include/linux/pnp.h should be covered by the PNP entry in MAINTAINERS, so add it in there. Signed-off-by: Corentin Labbe [ rjw: Subject & changelog ] Signed-off-by: Rafael J. Wysocki --- MAINTAINERS | 1 + 1 file changed, 1 insertion(+) diff --git a/MAINTAINERS b/MAINTAINERS index 6158a143a13e..ad66b7a1666c 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -13349,6 +13349,7 @@ F: Documentation/devicetree/bindings/iio/magnetometer/pni,rm3100.txt PNP SUPPORT M: "Rafael J. Wysocki" S: Maintained +F: include/linux/pnp.h F: drivers/pnp/ POSIX CLOCKS and TIMERS -- cgit v1.2.3 From b927ddf2dd1807e62946129cfbc7754fdcde85c4 Mon Sep 17 00:00:00 2001 From: Corentin Labbe Date: Fri, 6 Mar 2020 07:53:00 +0000 Subject: 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 Signed-off-by: Rafael J. Wysocki --- include/linux/pnp.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/linux/pnp.h b/include/linux/pnp.h index 3b12fd28af78..b18dca67253d 100644 --- a/include/linux/pnp.h +++ b/include/linux/pnp.h @@ -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); -- cgit v1.2.3 From 8d4e59ec948a959940c413b22b28dcca224455cb Mon Sep 17 00:00:00 2001 From: Corentin Labbe Date: Fri, 6 Mar 2020 07:53:01 +0000 Subject: rtc: cmos: remove useless cast for driver_name Now the pnp_driver name is "const char *", there are no need to cast driver_name. Signed-off-by: Corentin Labbe Signed-off-by: Rafael J. Wysocki --- drivers/rtc/rtc-cmos.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/rtc/rtc-cmos.c b/drivers/rtc/rtc-cmos.c index b795fe4cbd2e..82bfe009a50f 100644 --- a/drivers/rtc/rtc-cmos.c +++ b/drivers/rtc/rtc-cmos.c @@ -1345,7 +1345,7 @@ static const struct pnp_device_id rtc_ids[] = { MODULE_DEVICE_TABLE(pnp, rtc_ids); static struct pnp_driver cmos_pnp_driver = { - .name = (char *) driver_name, + .name = driver_name, .id_table = rtc_ids, .probe = cmos_pnp_probe, .remove = cmos_pnp_remove, -- cgit v1.2.3 From eaec20c7362c68176369f11e26dc0f6f994ae2d3 Mon Sep 17 00:00:00 2001 From: Corentin Labbe Date: Wed, 18 Mar 2020 15:29:51 +0000 Subject: MAINTAINERS: Add linux-acpi list to PNP As asked by the PNP maintainer, linux PNP patch should be CC to the linux-acpi mailing list. Signed-off-by: Corentin Labbe Signed-off-by: Rafael J. Wysocki --- MAINTAINERS | 1 + 1 file changed, 1 insertion(+) diff --git a/MAINTAINERS b/MAINTAINERS index ad66b7a1666c..63305f7db513 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -13348,6 +13348,7 @@ F: Documentation/devicetree/bindings/iio/magnetometer/pni,rm3100.txt PNP SUPPORT M: "Rafael J. Wysocki" +L: linux-acpi@vger.kernel.org S: Maintained F: include/linux/pnp.h F: drivers/pnp/ -- cgit v1.2.3