Skip to content

Commit

Permalink
ideapad-laptop: Constify DMI table for real!
Browse files Browse the repository at this point in the history
This is a follow-up patch to commit 49458e8 ("ideapad-laptop:
Constify DMI table and other r/o variables") to do what its commit
message says. The actual commit differs from the patch posted at
https://www.mail-archive.com/[email protected]/msg05340.html
significantly, probably due to a bad merge conflict resolution. Fix up
the mess and constify the DMI table for real and fix the bogus
double-const of ideapad_rfk_data[].

Reported-by: Dan Carpenter <[email protected]>
Signed-off-by: Mathias Krause <[email protected]>
Cc: Matthew Garrett <[email protected]>
Cc: Ike Panhc <[email protected]>
Signed-off-by: Darren Hart <[email protected]>
  • Loading branch information
minipli authored and dvhart committed Sep 2, 2014
1 parent 3b264d2 commit b3d94d7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/platform/x86/ideapad-laptop.c
Original file line number Diff line number Diff line change
Expand Up @@ -455,7 +455,7 @@ struct ideapad_rfk_data {
int type;
};

const const struct ideapad_rfk_data ideapad_rfk_data[] = {
static const struct ideapad_rfk_data ideapad_rfk_data[] = {
{ "ideapad_wlan", CFG_WIFI_BIT, VPCCMD_W_WIFI, RFKILL_TYPE_WLAN },
{ "ideapad_bluetooth", CFG_BT_BIT, VPCCMD_W_BT, RFKILL_TYPE_BLUETOOTH },
{ "ideapad_3g", CFG_3G_BIT, VPCCMD_W_3G, RFKILL_TYPE_WWAN },
Expand Down Expand Up @@ -829,7 +829,7 @@ static void ideapad_acpi_notify(acpi_handle handle, u32 event, void *data)
* always results in 0 on these models, causing ideapad_laptop to wrongly
* report all radios as hardware-blocked.
*/
static struct dmi_system_id no_hw_rfkill_list[] = {
static const struct dmi_system_id no_hw_rfkill_list[] = {
{
.ident = "Lenovo Yoga 2 11 / 13 / Pro",
.matches = {
Expand Down

0 comments on commit b3d94d7

Please sign in to comment.