[PATCH] drm/panel: simple: fix data type in KEO TX31D200VM0BAA timings
Thierry Reding
thierry.reding at gmail.com
Fri May 18 10:18:37 UTC 2018
On Thu, Apr 19, 2018 at 11:20:03PM +0200, Stefan Agner wrote:
> All values in a struct struct timing_entry (every entry in
> struct display_timing) require an integer. Choose the closest
> safe integer of 32.
>
> This avoids a warning seen with clang:
> drivers/gpu/drm/panel/panel-simple.c:1250:27: warning: implicit
> conversion from 'double' to 'u32' (aka 'unsigned int')
> changes value from 33.5 to 33 [-Wliteral-conversion]
> .vfront_porch = { 6, 21, 33.5 },
> ~ ^~~~
> drivers/gpu/drm/panel/panel-simple.c:1251:26: warning: implicit
> conversion from 'double' to 'u32' (aka 'unsigned int')
> changes value from 33.5 to 33 [-Wliteral-conversion]
> .vback_porch = { 6, 21, 33.5 },
> ~ ^~~~
>
> Signed-off-by: Stefan Agner <stefan at agner.ch>
> ---
> drivers/gpu/drm/panel/panel-simple.c | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
Applied, thanks.
Thierry
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <https://lists.freedesktop.org/archives/dri-devel/attachments/20180518/85b0ee92/attachment.sig>
More information about the dri-devel
mailing list