Hi Jacek,

On Tue, Apr 28, 2015 at 09:18:46AM +0200, Jacek Anaszewski wrote:
...
> +enum ctrl_init_data_id {
> +     LED_MODE,
> +     TORCH_INTENSITY,
> +     FLASH_INTENSITY,
> +     INDICATOR_INTENSITY,
> +     FLASH_TIMEOUT,
> +     STROBE_SOURCE,
> +     /*
> +      * Only above values are applicable to
> +      * the 'ctrls' array in the struct v4l2_flash.
> +      */
> +     FLASH_STROBE,
> +     STROBE_STOP,
> +     STROBE_STATUS,
> +     FLASH_FAULT,
> +     NUM_FLASH_CTRLS,
> +};

How about moving these to the .c file and allocating space for struct
v4l2_flash.ctrls?

I don't object this enum as such, but the names are pretty generic and
there's a single instance of using them in the header which easily can be
avoided.

With this change,

Acked-by: Sakari Ailus <sakari.ai...@linux.intel.com>

-- 
Kind regards,

Sakari Ailus
e-mail: sakari.ai...@iki.fi     XMPP: sai...@retiisi.org.uk
--
To unsubscribe from this list: send the line "unsubscribe linux-media" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to