media: marvell-ccic: drop to_cam() unused function
This function is an alias for container_of() that it is currently not used, causing clang warnings. So, drop it. Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
This commit is contained in:
parent
0338d9c2ff
commit
5f73dcec40
|
@ -139,13 +139,6 @@ struct cafe_camera {
|
||||||
*/
|
*/
|
||||||
#define CAFE_SMBUS_TIMEOUT (HZ) /* generous */
|
#define CAFE_SMBUS_TIMEOUT (HZ) /* generous */
|
||||||
|
|
||||||
static inline struct cafe_camera *to_cam(struct v4l2_device *dev)
|
|
||||||
{
|
|
||||||
struct mcam_camera *m = container_of(dev, struct mcam_camera, v4l2_dev);
|
|
||||||
return container_of(m, struct cafe_camera, mcam);
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
static int cafe_smbus_write_done(struct mcam_camera *mcam)
|
static int cafe_smbus_write_done(struct mcam_camera *mcam)
|
||||||
{
|
{
|
||||||
unsigned long flags;
|
unsigned long flags;
|
||||||
|
|
Loading…
Reference in New Issue