Message ID | 20220618222255.478165-2-marex@denx.de (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
Series | [1/2] media: dt-bindings: mt9p031: Add MT9P006 compatible string | expand |
Hi Marek, Thank you for the patch. On Sun, Jun 19, 2022 at 12:22:55AM +0200, Marek Vasut wrote: > Add compatible for MT9P006 sensor, which is older variant of MT9P031 > and compatible with this driver. > > Signed-off-by: Marek Vasut <marex@denx.de> > Cc: Laurent Pinchart <laurent.pinchart@ideasonboard.com> > Cc: Mauro Carvalho Chehab <mchehab+huawei@kernel.org> > Cc: Sakari Ailus <sakari.ailus@linux.intel.com> > Cc: Stefan Riedmueller <s.riedmueller@phytec.de> Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> > --- > drivers/media/i2c/mt9p031.c | 2 ++ > 1 file changed, 2 insertions(+) > > diff --git a/drivers/media/i2c/mt9p031.c b/drivers/media/i2c/mt9p031.c > index d0706723e493c..a81d1ca058b9c 100644 > --- a/drivers/media/i2c/mt9p031.c > +++ b/drivers/media/i2c/mt9p031.c > @@ -1234,6 +1234,7 @@ static int mt9p031_remove(struct i2c_client *client) > } > > static const struct i2c_device_id mt9p031_id[] = { > + { "mt9p006", MT9P031_MODEL_COLOR }, > { "mt9p031", MT9P031_MODEL_COLOR }, > { "mt9p031m", MT9P031_MODEL_MONOCHROME }, > { } > @@ -1242,6 +1243,7 @@ MODULE_DEVICE_TABLE(i2c, mt9p031_id); > > #if IS_ENABLED(CONFIG_OF) > static const struct of_device_id mt9p031_of_match[] = { > + { .compatible = "aptina,mt9p006", }, > { .compatible = "aptina,mt9p031", }, > { .compatible = "aptina,mt9p031m", }, > { /* sentinel */ },
diff --git a/drivers/media/i2c/mt9p031.c b/drivers/media/i2c/mt9p031.c index d0706723e493c..a81d1ca058b9c 100644 --- a/drivers/media/i2c/mt9p031.c +++ b/drivers/media/i2c/mt9p031.c @@ -1234,6 +1234,7 @@ static int mt9p031_remove(struct i2c_client *client) } static const struct i2c_device_id mt9p031_id[] = { + { "mt9p006", MT9P031_MODEL_COLOR }, { "mt9p031", MT9P031_MODEL_COLOR }, { "mt9p031m", MT9P031_MODEL_MONOCHROME }, { } @@ -1242,6 +1243,7 @@ MODULE_DEVICE_TABLE(i2c, mt9p031_id); #if IS_ENABLED(CONFIG_OF) static const struct of_device_id mt9p031_of_match[] = { + { .compatible = "aptina,mt9p006", }, { .compatible = "aptina,mt9p031", }, { .compatible = "aptina,mt9p031m", }, { /* sentinel */ },
Add compatible for MT9P006 sensor, which is older variant of MT9P031 and compatible with this driver. Signed-off-by: Marek Vasut <marex@denx.de> Cc: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Cc: Mauro Carvalho Chehab <mchehab+huawei@kernel.org> Cc: Sakari Ailus <sakari.ailus@linux.intel.com> Cc: Stefan Riedmueller <s.riedmueller@phytec.de> --- drivers/media/i2c/mt9p031.c | 2 ++ 1 file changed, 2 insertions(+)