aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMathias Krause <minipli@googlemail.com>2014-07-16 13:43:14 -0400
committerMatthew Garrett <matthew.garrett@nebula.com>2014-08-16 04:23:53 -0400
commit8a1a970acd7434cab6373ad83313401f6f5d2d7c (patch)
treecb84b25c0861459d95c781d5ff59109f0ccd959e
parent0f93c5e59292b496cf5aeec92ea01d761563a4d5 (diff)
hp_accel: Constify ACPI and DMI tables
Constify the lis3lv02d_device_ids[] ACPI and the lis3lv02d_dmi_ids[] DMI tables. There's no need to have them writeable during runtime. Signed-off-by: Mathias Krause <minipli@googlemail.com> Cc: Eric Piel <eric.piel@tremplin-utc.net> Signed-off-by: Matthew Garrett <matthew.garrett@nebula.com>
-rw-r--r--drivers/platform/x86/hp_accel.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/platform/x86/hp_accel.c b/drivers/platform/x86/hp_accel.c
index 3dc934438c28..13e14ec1d3d7 100644
--- a/drivers/platform/x86/hp_accel.c
+++ b/drivers/platform/x86/hp_accel.c
@@ -74,7 +74,7 @@ static inline void delayed_sysfs_set(struct led_classdev *led_cdev,
74/* HP-specific accelerometer driver ------------------------------------ */ 74/* HP-specific accelerometer driver ------------------------------------ */
75 75
76/* For automatic insertion of the module */ 76/* For automatic insertion of the module */
77static struct acpi_device_id lis3lv02d_device_ids[] = { 77static const struct acpi_device_id lis3lv02d_device_ids[] = {
78 {"HPQ0004", 0}, /* HP Mobile Data Protection System PNP */ 78 {"HPQ0004", 0}, /* HP Mobile Data Protection System PNP */
79 {"HPQ6000", 0}, /* HP Mobile Data Protection System PNP */ 79 {"HPQ6000", 0}, /* HP Mobile Data Protection System PNP */
80 {"HPQ6007", 0}, /* HP Mobile Data Protection System PNP */ 80 {"HPQ6007", 0}, /* HP Mobile Data Protection System PNP */
@@ -192,7 +192,7 @@ DEFINE_CONV(xy_swap_yz_inverted, 2, -1, -3);
192 }, \ 192 }, \
193 .driver_data = &lis3lv02d_axis_##_axis \ 193 .driver_data = &lis3lv02d_axis_##_axis \
194} 194}
195static struct dmi_system_id lis3lv02d_dmi_ids[] = { 195static const struct dmi_system_id lis3lv02d_dmi_ids[] = {
196 /* product names are truncated to match all kinds of a same model */ 196 /* product names are truncated to match all kinds of a same model */
197 AXIS_DMI_MATCH("NC64x0", "HP Compaq nc64", x_inverted), 197 AXIS_DMI_MATCH("NC64x0", "HP Compaq nc64", x_inverted),
198 AXIS_DMI_MATCH("NC84x0", "HP Compaq nc84", z_inverted), 198 AXIS_DMI_MATCH("NC84x0", "HP Compaq nc84", z_inverted),