mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 11:11:45 -04:00
V4L/DVB (8687): soc-camera: Move .power and .reset from soc_camera host to sensor driver
Make .power and .reset callbacks per camera instead of per host, also move their invocation to camera drivers. .arch/arm/mach-pxa/include/mach/camera.h | 2 - Signed-off-by: Stefan Herbrechtsmeier <[email protected]> Signed-off-by: Guennadi Liakhovetski <[email protected]> Signed-off-by: Mauro Carvalho Chehab <[email protected]>
This commit is contained in:
parent
506c629a8e
commit
8103466315
8 changed files with 71 additions and 37 deletions
|
|
@ -5,8 +5,6 @@
|
|||
|
||||
struct sh_mobile_ceu_info {
|
||||
unsigned long flags; /* SOCAM_... */
|
||||
void (*enable_camera)(void);
|
||||
void (*disable_camera)(void);
|
||||
};
|
||||
|
||||
#endif /* __ASM_SH_MOBILE_CEU_H__ */
|
||||
|
|
|
|||
|
|
@ -83,6 +83,9 @@ struct soc_camera_link {
|
|||
int bus_id;
|
||||
/* GPIO number to switch between 8 and 10 bit modes */
|
||||
unsigned int gpio;
|
||||
/* Optional callbacks to power on or off and reset the sensor */
|
||||
int (*power)(struct device *, int);
|
||||
int (*reset)(struct device *);
|
||||
};
|
||||
|
||||
static inline struct soc_camera_device *to_soc_camera_dev(struct device *dev)
|
||||
|
|
|
|||
Loading…
Reference in a new issue