You've already forked linux-apfs
mirror of
https://github.com/linux-apfs/linux-apfs.git
synced 2026-05-01 15:00:59 -07:00
[media] mb86a16/mb86a20s: fix sparse warnings
drivers/media/dvb-frontends/mb86a16.c:31:14: warning: symbol 'verbose' was not declared. Should it be static? drivers/media/dvb-frontends/mb86a20s.c:36:4: warning: symbol 'mb86a20s_subchannel' was not declared. Should it be static? drivers/media/dvb-frontends/mb86a20s.c:1333:24: warning: symbol 'cnr_qpsk_table' was not declared. Should it be static? Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com> Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
This commit is contained in:
committed by
Mauro Carvalho Chehab
parent
6fbf4d0412
commit
ce08131c42
@@ -28,7 +28,7 @@
|
|||||||
#include "mb86a16.h"
|
#include "mb86a16.h"
|
||||||
#include "mb86a16_priv.h"
|
#include "mb86a16_priv.h"
|
||||||
|
|
||||||
unsigned int verbose = 5;
|
static unsigned int verbose = 5;
|
||||||
module_param(verbose, int, 0644);
|
module_param(verbose, int, 0644);
|
||||||
|
|
||||||
#define ABS(x) ((x) < 0 ? (-x) : (x))
|
#define ABS(x) ((x) < 0 ? (-x) : (x))
|
||||||
|
|||||||
@@ -33,7 +33,7 @@ enum mb86a20s_bandwidth {
|
|||||||
MB86A20S_3SEG = 3,
|
MB86A20S_3SEG = 3,
|
||||||
};
|
};
|
||||||
|
|
||||||
u8 mb86a20s_subchannel[] = {
|
static u8 mb86a20s_subchannel[] = {
|
||||||
0xb0, 0xc0, 0xd0, 0xe0,
|
0xb0, 0xc0, 0xd0, 0xe0,
|
||||||
0xf0, 0x00, 0x10, 0x20,
|
0xf0, 0x00, 0x10, 0x20,
|
||||||
};
|
};
|
||||||
@@ -1228,7 +1228,7 @@ struct linear_segments {
|
|||||||
* All tables below return a dB/1000 measurement
|
* All tables below return a dB/1000 measurement
|
||||||
*/
|
*/
|
||||||
|
|
||||||
static struct linear_segments cnr_to_db_table[] = {
|
static const struct linear_segments cnr_to_db_table[] = {
|
||||||
{ 19648, 0},
|
{ 19648, 0},
|
||||||
{ 18187, 1000},
|
{ 18187, 1000},
|
||||||
{ 16534, 2000},
|
{ 16534, 2000},
|
||||||
@@ -1262,7 +1262,7 @@ static struct linear_segments cnr_to_db_table[] = {
|
|||||||
{ 788, 30000},
|
{ 788, 30000},
|
||||||
};
|
};
|
||||||
|
|
||||||
static struct linear_segments cnr_64qam_table[] = {
|
static const struct linear_segments cnr_64qam_table[] = {
|
||||||
{ 3922688, 0},
|
{ 3922688, 0},
|
||||||
{ 3920384, 1000},
|
{ 3920384, 1000},
|
||||||
{ 3902720, 2000},
|
{ 3902720, 2000},
|
||||||
@@ -1296,7 +1296,7 @@ static struct linear_segments cnr_64qam_table[] = {
|
|||||||
{ 388864, 30000},
|
{ 388864, 30000},
|
||||||
};
|
};
|
||||||
|
|
||||||
static struct linear_segments cnr_16qam_table[] = {
|
static const struct linear_segments cnr_16qam_table[] = {
|
||||||
{ 5314816, 0},
|
{ 5314816, 0},
|
||||||
{ 5219072, 1000},
|
{ 5219072, 1000},
|
||||||
{ 5118720, 2000},
|
{ 5118720, 2000},
|
||||||
@@ -1330,7 +1330,7 @@ static struct linear_segments cnr_16qam_table[] = {
|
|||||||
{ 95744, 30000},
|
{ 95744, 30000},
|
||||||
};
|
};
|
||||||
|
|
||||||
struct linear_segments cnr_qpsk_table[] = {
|
static const struct linear_segments cnr_qpsk_table[] = {
|
||||||
{ 2834176, 0},
|
{ 2834176, 0},
|
||||||
{ 2683648, 1000},
|
{ 2683648, 1000},
|
||||||
{ 2536960, 2000},
|
{ 2536960, 2000},
|
||||||
@@ -1364,7 +1364,7 @@ struct linear_segments cnr_qpsk_table[] = {
|
|||||||
{ 11520, 30000},
|
{ 11520, 30000},
|
||||||
};
|
};
|
||||||
|
|
||||||
static u32 interpolate_value(u32 value, struct linear_segments *segments,
|
static u32 interpolate_value(u32 value, const struct linear_segments *segments,
|
||||||
unsigned len)
|
unsigned len)
|
||||||
{
|
{
|
||||||
u64 tmp64;
|
u64 tmp64;
|
||||||
@@ -1448,7 +1448,7 @@ static int mb86a20s_get_blk_error_layer_CNR(struct dvb_frontend *fe)
|
|||||||
struct dtv_frontend_properties *c = &fe->dtv_property_cache;
|
struct dtv_frontend_properties *c = &fe->dtv_property_cache;
|
||||||
u32 mer, cnr;
|
u32 mer, cnr;
|
||||||
int rc, val, layer;
|
int rc, val, layer;
|
||||||
struct linear_segments *segs;
|
const struct linear_segments *segs;
|
||||||
unsigned segs_len;
|
unsigned segs_len;
|
||||||
|
|
||||||
dev_dbg(&state->i2c->dev, "%s called.\n", __func__);
|
dev_dbg(&state->i2c->dev, "%s called.\n", __func__);
|
||||||
|
|||||||
Reference in New Issue
Block a user