tvp7002
struct tvp7002 *device = to_tvp7002(sd);
static inline struct tvp7002 *to_tvp7002(struct v4l2_subdev *sd)
return container_of(sd, struct tvp7002, sd);
return &container_of(ctrl->handler, struct tvp7002, hdl)->sd;
struct tvp7002 *device = to_tvp7002(sd);
struct tvp7002 *device = to_tvp7002(sd);
struct tvp7002 *device = to_tvp7002(sd);
struct tvp7002 *device = to_tvp7002(sd);
struct tvp7002 *tvp7002 = to_tvp7002(sd);
fmt->format.width = tvp7002->current_timings->timings.bt.width;
fmt->format.height = tvp7002->current_timings->timings.bt.height;
fmt->format.field = tvp7002->current_timings->scanmode;
fmt->format.colorspace = tvp7002->current_timings->color_space;
struct tvp7002 *device;
device = devm_kzalloc(&c->dev, sizeof(struct tvp7002), GFP_KERNEL);