[PATCH 13/16] drm/omap: use u32 instead of enum omap_color_mode

Tomi Valkeinen tomi.valkeinen at ti.com
Wed May 24 11:01:57 UTC 2017



On 24/05/17 13:46, Laurent Pinchart wrote:
> Hi Tomi,
> 
> On Wednesday 24 May 2017 13:37:48 Tomi Valkeinen wrote:
>> On 24/05/17 13:28, Laurent Pinchart wrote:
>>> On Thursday 04 May 2017 13:23:29 Tomi Valkeinen wrote:
>>>> In this step we drop 'enum omap_color_mode', and use u32 instead.
>>>>
>>>> Signed-off-by: Tomi Valkeinen <tomi.valkeinen at ti.com>
>>>
>>> I believe this should go before 12/16, otherwise you end up temporarily
>>> storing DRM_FORMAT_* values in enum omap_color_mode variables.
>>
>> That's on purpose, I mention it in the previous patch. Do you see a
>> problem with it?
> 
> It's dirty :-) You had to silence a few warnings with explicit casts because 
> of that.
> 
>> If I change the order, then I'd be going back and forth with u32 and
>> enum omap_color_mode.
> 
> If you first switch to u32, there's nothing wrong storing the enum 
> omap_color_mode value in a u32, and it will then be easy to transition to 
> DRM_FORMAT_*.

True, I did that and the end result looks a bit cleaner. Thanks!

 Tomi

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: OpenPGP digital signature
URL: <https://lists.freedesktop.org/archives/dri-devel/attachments/20170524/9a399f2c/attachment-0001.sig>


More information about the dri-devel mailing list