aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/panel/panel-simple.c
diff options
context:
space:
mode:
authorStefan Agner <stefan@agner.ch>2018-04-19 17:20:03 -0400
committerThierry Reding <treding@nvidia.com>2018-05-18 06:53:35 -0400
commitc9b6be7dc13e2f87592ee4c9812cb450dba484d5 (patch)
treec96eea16b74207a95cd7e94df0fc31d347539918 /drivers/gpu/drm/panel/panel-simple.c
parent2554f154b46f7d8a933f0616e8170bf4d970a2bf (diff)
drm/panel: simple: Fix data type in KEO TX31D200VM0BAA timings
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@agner.ch> Signed-off-by: Thierry Reding <treding@nvidia.com> Link: https://patchwork.freedesktop.org/patch/msgid/20180419212003.8155-1-stefan@agner.ch
Diffstat (limited to 'drivers/gpu/drm/panel/panel-simple.c')
-rw-r--r--drivers/gpu/drm/panel/panel-simple.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/gpu/drm/panel/panel-simple.c b/drivers/gpu/drm/panel/panel-simple.c
index ba2631a7de0b..964c261cfb78 100644
--- a/drivers/gpu/drm/panel/panel-simple.c
+++ b/drivers/gpu/drm/panel/panel-simple.c
@@ -1270,8 +1270,8 @@ static const struct display_timing koe_tx31d200vm0baa_timing = {
1270 .hback_porch = { 16, 36, 56 }, 1270 .hback_porch = { 16, 36, 56 },
1271 .hsync_len = { 8, 8, 8 }, 1271 .hsync_len = { 8, 8, 8 },
1272 .vactive = { 480, 480, 480 }, 1272 .vactive = { 480, 480, 480 },
1273 .vfront_porch = { 6, 21, 33.5 }, 1273 .vfront_porch = { 6, 21, 33 },
1274 .vback_porch = { 6, 21, 33.5 }, 1274 .vback_porch = { 6, 21, 33 },
1275 .vsync_len = { 8, 8, 8 }, 1275 .vsync_len = { 8, 8, 8 },
1276 .flags = DISPLAY_FLAGS_DE_HIGH, 1276 .flags = DISPLAY_FLAGS_DE_HIGH,
1277}; 1277};