media: si470x: Avoid card name truncation
The "card" string only holds 31 characters (and the terminating NUL). In order to avoid truncation, use a shorter card description instead of the current result, "Silicon Labs Si470x FM Radio Re". Suggested-by: Hans Verkuil <hverkuil-cisco@xs4all.nl> Fixes:78656acdcf
("V4L/DVB (7038): USB radio driver for Silicon Labs Si470x FM Radio Receivers") Fixes:cc35bbddfe
("V4L/DVB (12416): radio-si470x: add i2c driver for si470x") Signed-off-by: Kees Cook <keescook@chromium.org> Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl> Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
This commit is contained in:
parent
dfadec236a
commit
2908249f38
@ -11,7 +11,7 @@
|
|||||||
|
|
||||||
/* driver definitions */
|
/* driver definitions */
|
||||||
#define DRIVER_AUTHOR "Joonyoung Shim <jy0922.shim@samsung.com>";
|
#define DRIVER_AUTHOR "Joonyoung Shim <jy0922.shim@samsung.com>";
|
||||||
#define DRIVER_CARD "Silicon Labs Si470x FM Radio Receiver"
|
#define DRIVER_CARD "Silicon Labs Si470x FM Radio"
|
||||||
#define DRIVER_DESC "I2C radio driver for Si470x FM Radio Receivers"
|
#define DRIVER_DESC "I2C radio driver for Si470x FM Radio Receivers"
|
||||||
#define DRIVER_VERSION "1.0.2"
|
#define DRIVER_VERSION "1.0.2"
|
||||||
|
|
||||||
|
@ -16,7 +16,7 @@
|
|||||||
|
|
||||||
/* driver definitions */
|
/* driver definitions */
|
||||||
#define DRIVER_AUTHOR "Tobias Lorenz <tobias.lorenz@gmx.net>"
|
#define DRIVER_AUTHOR "Tobias Lorenz <tobias.lorenz@gmx.net>"
|
||||||
#define DRIVER_CARD "Silicon Labs Si470x FM Radio Receiver"
|
#define DRIVER_CARD "Silicon Labs Si470x FM Radio"
|
||||||
#define DRIVER_DESC "USB radio driver for Si470x FM Radio Receivers"
|
#define DRIVER_DESC "USB radio driver for Si470x FM Radio Receivers"
|
||||||
#define DRIVER_VERSION "1.0.10"
|
#define DRIVER_VERSION "1.0.10"
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user