]> git.baikalelectronics.ru Git - kernel.git/commit
drm/gma500: remove helper function
authorSudip Mukherjee <sudipm.mukherjee@gmail.com>
Tue, 2 Feb 2016 06:05:55 +0000 (11:35 +0530)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Mon, 8 Feb 2016 09:03:17 +0000 (10:03 +0100)
commit935a6b7ca5aeb4b31bacf4b4e4510cc22e99e276
tree6ca8c770ee4be9da2daeda5f471332c35ef9cee0
parent72e510bae9aaa41f9ae09e696ac51774f4050bc8
drm/gma500: remove helper function

We were getting build warning about:
drivers/gpu/drm/gma500/mdfld_dsi_output.c:407:2: warning: initialization
from incompatible pointer type

The callback to dpms was pointing to a helper function which had a
return type of void, whereas the callback should point to a function
which has a return type of int.
On closer look it turned out that we do not need the helper function
since if we call drm_helper_connector_dpms() directly, the first check
that drm_helper_connector_dpms() does is: if (mode == connector->dpms)

Signed-off-by: Sudip Mukherjee <sudip@vectorindia.org>
Link: http://patchwork.freedesktop.org/patch/msgid/1454393155-13142-1-git-send-email-sudipm.mukherjee@gmail.com
Acked-by: Patrik Jakobsson <patrik.r.jakobsson@gmail.com>
Signed-off-by: Daniel Vetter <daniel.vetter@intel.com>
drivers/gpu/drm/gma500/mdfld_dsi_output.c