Skip to content

Commit

Permalink
media: tuners: make snd_pcm_hardware const
Browse files Browse the repository at this point in the history
Make these const as they are only used during a copy operation.
Done using Coccinelle.

Signed-off-by: Bhumika Goyal <bhumirks@gmail.com>
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
  • Loading branch information
Bhumika Goyal authored and Mauro Carvalho Chehab committed Aug 20, 2017
1 parent 47f1431 commit 92a6882
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/media/tuners/tda18271-maps.c
Original file line number Diff line number Diff line change
Expand Up @@ -1182,7 +1182,7 @@ int tda18271_lookup_map(struct dvb_frontend *fe,

/*---------------------------------------------------------------------*/

static struct tda18271_std_map tda18271c1_std_map = {
static const struct tda18271_std_map tda18271c1_std_map = {
.fm_radio = { .if_freq = 1250, .fm_rfn = 1, .agc_mode = 3, .std = 0,
.if_lvl = 0, .rfagc_top = 0x2c, }, /* EP3[4:0] 0x18 */
.atv_b = { .if_freq = 6750, .fm_rfn = 0, .agc_mode = 1, .std = 6,
Expand Down Expand Up @@ -1215,7 +1215,7 @@ static struct tda18271_std_map tda18271c1_std_map = {
.if_lvl = 1, .rfagc_top = 0x37, }, /* EP3[4:0] 0x1f */
};

static struct tda18271_std_map tda18271c2_std_map = {
static const struct tda18271_std_map tda18271c2_std_map = {
.fm_radio = { .if_freq = 1250, .fm_rfn = 1, .agc_mode = 3, .std = 0,
.if_lvl = 0, .rfagc_top = 0x2c, }, /* EP3[4:0] 0x18 */
.atv_b = { .if_freq = 6000, .fm_rfn = 0, .agc_mode = 1, .std = 5,
Expand Down

0 comments on commit 92a6882

Please sign in to comment.