media: bt8xx: avoid a needless u8 to char conversion
Instead of doing the cast, just change the type to char. Suggested-by: Hans Verkuil <hverkuil@xs4all.nl> Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
This commit is contained in:
parent
85709cbf15
commit
05fa38fd63
|
@ -1100,8 +1100,8 @@ static int dst_get_device_id(struct dst_state *state)
|
||||||
/* Card capabilities */
|
/* Card capabilities */
|
||||||
state->dst_hw_cap = p_dst_type->dst_feature;
|
state->dst_hw_cap = p_dst_type->dst_feature;
|
||||||
pr_err("Recognise [%s]\n", p_dst_type->device_id);
|
pr_err("Recognise [%s]\n", p_dst_type->device_id);
|
||||||
strscpy((char *)state->fw_name, p_dst_type->device_id,
|
strscpy(state->fw_name, p_dst_type->device_id,
|
||||||
sizeof(state->fw_name));
|
sizeof(state->fw_name));
|
||||||
/* Multiple tuners */
|
/* Multiple tuners */
|
||||||
if (p_dst_type->tuner_type & TUNER_TYPE_MULTI) {
|
if (p_dst_type->tuner_type & TUNER_TYPE_MULTI) {
|
||||||
switch (use_dst_type) {
|
switch (use_dst_type) {
|
||||||
|
|
|
@ -138,7 +138,7 @@ struct dst_state {
|
||||||
u32 tuner_type;
|
u32 tuner_type;
|
||||||
char *tuner_name;
|
char *tuner_name;
|
||||||
struct mutex dst_mutex;
|
struct mutex dst_mutex;
|
||||||
u8 fw_name[8];
|
char fw_name[8];
|
||||||
struct dvb_device *dst_ca;
|
struct dvb_device *dst_ca;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue