Skip to content

Commit

Permalink
Input: drv260x/drv2665/drv2667 - constify reg_default tables
Browse files Browse the repository at this point in the history
These reg_default tables are not modified after initialized, so make them
const.

Signed-off-by: Axel Lin <axel.lin@ingics.com>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
  • Loading branch information
Axel Lin authored and Dmitry Torokhov committed Jul 9, 2015
1 parent 2d53809 commit ec0843f
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion drivers/input/misc/drv260x.c
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@ struct drv260x_data {
int overdrive_voltage;
};

static struct reg_default drv260x_reg_defs[] = {
static const struct reg_default drv260x_reg_defs[] = {
{ DRV260X_STATUS, 0xe0 },
{ DRV260X_MODE, 0x40 },
{ DRV260X_RT_PB_IN, 0x00 },
Expand Down
2 changes: 1 addition & 1 deletion drivers/input/misc/drv2665.c
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ static const u8 drv2665_sine_wave_form[] = {
0x9b, 0x9f, 0xa5, 0xad, 0xb8, 0xc4, 0xd2, 0xe0, 0xf0, 0x00,
};

static struct reg_default drv2665_reg_defs[] = {
static const struct reg_default drv2665_reg_defs[] = {
{ DRV2665_STATUS, 0x02 },
{ DRV2665_CTRL_1, 0x28 },
{ DRV2665_CTRL_2, 0x40 },
Expand Down
2 changes: 1 addition & 1 deletion drivers/input/misc/drv2667.c
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ struct drv2667_data {
u32 frequency;
};

static struct reg_default drv2667_reg_defs[] = {
static const struct reg_default drv2667_reg_defs[] = {
{ DRV2667_STATUS, 0x02 },
{ DRV2667_CTRL_1, 0x28 },
{ DRV2667_CTRL_2, 0x40 },
Expand Down

0 comments on commit ec0843f

Please sign in to comment.