Age | Commit message (Collapse) | Author |
|
This patch supports i2c interface of si470x. The i2c specific part
exists in radio-si470x-i2c.c file and the common part uses
radio-si470x-common.c file. The '#if defined' is inserted inevitably
because of parts used only si470x usb in the common file.
The current driver version doesn't support the RDS.
Signed-off-by: Joonyoung Shim <jy0922.shim@samsung.com>
Acked-by: Tobias Lorenz <tobias.lorenz@gmx.net>
---
linux/drivers/media/radio/si470x/Kconfig | 13 +
linux/drivers/media/radio/si470x/Makefile | 2 +
.../media/radio/si470x/radio-si470x-common.c | 6 +
.../drivers/media/radio/si470x/radio-si470x-i2c.c | 254 ++++++++++++++++++++
linux/drivers/media/radio/si470x/radio-si470x.h | 6 +
5 files changed, 281 insertions(+), 0 deletions(-)
create mode 100644 linux/drivers/media/radio/si470x/radio-si470x-i2c.c
|
|
The si470x_disconnect_check is function to check disconnect state of
radio in common file. The function is implemented in each interface
file.
Signed-off-by: Joonyoung Shim <jy0922.shim@samsung.com>
Acked-by: Tobias Lorenz <tobias.lorenz@gmx.net>
---
.../media/radio/si470x/radio-si470x-common.c | 40 +++++++++----------
.../drivers/media/radio/si470x/radio-si470x-usb.c | 17 ++++++++
linux/drivers/media/radio/si470x/radio-si470x.h | 1 +
3 files changed, 37 insertions(+), 21 deletions(-)
|
|
This patch is for using dev_* macro instead of printk.
Signed-off-by: Joonyoung Shim <jy0922.shim@samsung.com>
Acked-by: Tobias Lorenz <tobias.lorenz@gmx.net>
---
.../media/radio/si470x/radio-si470x-common.c | 50 +++++++++---------
.../drivers/media/radio/si470x/radio-si470x-usb.c | 58 +++++++++-----------
2 files changed, 52 insertions(+), 56 deletions(-)
|
|
This patch is a preceding work to add the i2c interface of si470x.
The si470x directory includes a common file and usb specific file and
header file.
The part unrelated with usb interface and i2c interface exists in
radio-si470x-common.c file, and The usb specific part exists in
radio-si470x-usb.c file.
Signed-off-by: Joonyoung Shim <jy0922.shim@samsung.com>
Small changes, due to new include "linux/smp_lock.h".
Acked-by: Tobias Lorenz <tobias.lorenz@gmx.net>
---
linux/drivers/media/radio/Kconfig | 26 +-
linux/drivers/media/radio/Makefile | 2 +-
linux/drivers/media/radio/radio-si470x.c | 1870 --------------------
linux/drivers/media/radio/si470x/Kconfig | 24 +
linux/drivers/media/radio/si470x/Makefile | 7 +
.../media/radio/si470x/radio-si470x-common.c | 794 +++++++++
.../drivers/media/radio/si470x/radio-si470x-usb.c | 958 ++++++++++
linux/drivers/media/radio/si470x/radio-si470x.h | 202 +++
8 files changed, 1989 insertions(+), 1892 deletions(-)
delete mode 100644 linux/drivers/media/radio/radio-si470x.c
create mode 100644 linux/drivers/media/radio/si470x/Kconfig
create mode 100644 linux/drivers/media/radio/si470x/Makefile
create mode 100644 linux/drivers/media/radio/si470x/radio-si470x-common.c
create mode 100644 linux/drivers/media/radio/si470x/radio-si470x-usb.c
create mode 100644 linux/drivers/media/radio/si470x/radio-si470x.h
|