mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-01-31 22:43:16 -05:00
V4L/DVB (11609): soc-camera: remove an extra device generation from struct soc_camera_host
Make camera devices direct children of host platform devices, move the inheritance management into the soc_camera.c core driver. Signed-off-by: Guennadi Liakhovetski <g.liakhovetski@gmx.de> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
This commit is contained in:
committed by
Mauro Carvalho Chehab
parent
eb6c8558f7
commit
eff505fa15
@@ -60,7 +60,7 @@ struct soc_camera_file {
|
||||
|
||||
struct soc_camera_host {
|
||||
struct list_head list;
|
||||
struct device dev;
|
||||
struct device *dev;
|
||||
unsigned char nr; /* Host number */
|
||||
void *priv;
|
||||
const char *drv_name;
|
||||
@@ -117,7 +117,7 @@ static inline struct soc_camera_device *to_soc_camera_dev(struct device *dev)
|
||||
|
||||
static inline struct soc_camera_host *to_soc_camera_host(struct device *dev)
|
||||
{
|
||||
return container_of(dev, struct soc_camera_host, dev);
|
||||
return dev_get_drvdata(dev);
|
||||
}
|
||||
|
||||
extern int soc_camera_host_register(struct soc_camera_host *ici);
|
||||
|
||||
Reference in New Issue
Block a user