Message ID | bdfa2fa007fe799206043c874017fb3b412f7f32.1313062441.git.andriy.shevchenko@linux.intel.com (mailing list archive) |
---|---|
State | Under Review |
Headers | show |
On Thu, Aug 11, 2011 at 02:35:04PM +0300, Andy Shevchenko wrote: > The type of a media entity is default for this driver. This patch makes it > explicitly defined as MEDIA_ENT_T_V4L2_SUBDEV_FLASH. Thanks again for the patch, Andy! Applied to my tree in linuxtv.org; the branch is called media-for-3.2-adp1653-1. > Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com> > --- > drivers/media/video/adp1653.c | 2 ++ > 1 files changed, 2 insertions(+), 0 deletions(-) > > diff --git a/drivers/media/video/adp1653.c b/drivers/media/video/adp1653.c > index 7f2e710..0fd9579 100644 > --- a/drivers/media/video/adp1653.c > +++ b/drivers/media/video/adp1653.c > @@ -438,6 +438,8 @@ static int adp1653_probe(struct i2c_client *client, > if (ret < 0) > goto free_and_quit; > > + flash->subdev.entity.type = MEDIA_ENT_T_V4L2_SUBDEV_FLASH; > + > return 0; > > free_and_quit: > -- > 1.7.5.4 >
diff --git a/drivers/media/video/adp1653.c b/drivers/media/video/adp1653.c index 7f2e710..0fd9579 100644 --- a/drivers/media/video/adp1653.c +++ b/drivers/media/video/adp1653.c @@ -438,6 +438,8 @@ static int adp1653_probe(struct i2c_client *client, if (ret < 0) goto free_and_quit; + flash->subdev.entity.type = MEDIA_ENT_T_V4L2_SUBDEV_FLASH; + return 0; free_and_quit:
The type of a media entity is default for this driver. This patch makes it explicitly defined as MEDIA_ENT_T_V4L2_SUBDEV_FLASH. Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com> --- drivers/media/video/adp1653.c | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-)