Re: [PATCH v2 4/5] media: atomisp: ov2680: Convert to new CCI register access helpers

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, Jun 14, 2023 at 10:24 PM Hans de Goede <hdegoede@xxxxxxxxxx> wrote:
>
> Use the new comon CCI register access helpers to replace the private
> register access helpers in the ov2680 driver.
>
> While at it also switch to using the same register address defines
> as the standard drivers/media/i2c/ov2680.c driver to make merging
> the 2 drivers simpler.

...

> @@ -121,7 +59,8 @@ struct ov2680_dev {
>         struct media_pad pad;
>         /* Protect against concurrent changes to controls */
>         struct mutex lock;
> -       struct i2c_client *client;
> +       struct device *dev;
> +       struct regmap *regmap;

Similar question as per patch 2. Do we need both of them?

>         struct gpio_desc *powerdown;
>         struct fwnode_handle *ep_fwnode;
>         bool is_streaming;

>         } ctrls;
>  };

-- 
With Best Regards,
Andy Shevchenko




[Index of Archives]     [Linux Input]     [Video for Linux]     [Gstreamer Embedded]     [Mplayer Users]     [Linux USB Devel]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Yosemite Backpacking]

  Powered by Linux