drm: make is_lspcon_adaptor static
authorJani Nikula <jani.nikula@intel.com>
Tue, 18 Oct 2016 11:21:50 +0000 (14:21 +0300)
committerJani Nikula <jani.nikula@intel.com>
Wed, 19 Oct 2016 09:55:09 +0000 (12:55 +0300)
Fixes sparse warning:

drivers/gpu/drm/drm_dp_dual_mode_helper.c:151:6: warning: symbol
'is_lspcon_adaptor' was not declared. Should it be static?

Fixes: 056996b95686 ("drm: Helper for lspcon in drm_dp_dual_mode")
Cc: Rodrigo Vivi <rodrigo.vivi@intel.com>
Cc: Shashank Sharma <shashank.sharma@intel.com>
Cc: <dri-devel@lists.freedesktop.org>
Reviewed-by: Shashank Sharma <shashank.sharma@intel.com>
Signed-off-by: Jani Nikula <jani.nikula@intel.com>
Link: http://patchwork.freedesktop.org/patch/msgid/1476789711-19697-1-git-send-email-jani.nikula@intel.com
drivers/gpu/drm/drm_dp_dual_mode_helper.c

index a7aeb1ec852c2c65e843506972db3c66bdcb7389..2624e266abbd132c69f34e07ed40cc36bccc8816 100644 (file)
@@ -148,8 +148,8 @@ static bool is_type2_adaptor(uint8_t adaptor_id)
                              DP_DUAL_MODE_REV_TYPE2);
 }
 
-bool is_lspcon_adaptor(const char hdmi_id[DP_DUAL_MODE_HDMI_ID_LEN],
-       const uint8_t adaptor_id)
+static bool is_lspcon_adaptor(const char hdmi_id[DP_DUAL_MODE_HDMI_ID_LEN],
+                             const uint8_t adaptor_id)
 {
        return is_hdmi_adaptor(hdmi_id) &&
                (adaptor_id == (DP_DUAL_MODE_TYPE_TYPE2 |