]> git.baikalelectronics.ru Git - kernel.git/commit
drm/mediatek: Fix warning about unhandled enum value
authorSean Paul <seanpaul@chromium.org>
Wed, 22 May 2019 20:21:54 +0000 (16:21 -0400)
committerSean Paul <seanpaul@chromium.org>
Thu, 23 May 2019 13:40:40 +0000 (09:40 -0400)
commita34477d31e46570c2e9ea210dc9ecf6d0f69172b
tree9718417f760535c6c080aa52712e751e0f64a559
parentd7fbceda75918f678573a2b977fb1411cf4541e5
drm/mediatek: Fix warning about unhandled enum value

Fixes the following build warning:
drivers/gpu/drm/mediatek/mtk_hdmi.c:327:2: warning: enumeration value ‘HDMI_INFOFRAME_TYPE_DRM’ not handled in switch [-Wswitch]

Introduced with the addition of HDMI_INFOFRAME_TYPE_DRM in the commit
below, but the code really should have been future-proofed from the
start.

Fixes: 588c508dd921 ("drm: Enable HDR infoframe support")
Cc: Uma Shankar <uma.shankar@intel.com>
Cc: Shashank Sharma <shashank.sharma@intel.com>
Cc: Ville Syrjälä <ville.syrjala@linux.intel.com>
Cc: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
Cc: Maxime Ripard <maxime.ripard@bootlin.com>
Cc: Sean Paul <sean@poorly.run>
Cc: David Airlie <airlied@linux.ie>
Cc: Daniel Vetter <daniel@ffwll.ch>
Cc: Bartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com>
Cc: "Ville Syrjälä" <ville.syrjala@linux.intel.com>
Cc: Hans Verkuil <hansverk@cisco.com>
Cc: dri-devel@lists.freedesktop.org
Cc: linux-fbdev@vger.kernel.org
Acked-by: CK Hu <ck.hu@mediatek.com>
Signed-off-by: Sean Paul <seanpaul@chromium.org>
Link: https://patchwork.freedesktop.org/patch/msgid/20190522202207.223110-1-sean@poorly.run
drivers/gpu/drm/mediatek/mtk_hdmi.c