diff options
author | Vinay Simha BN <simhavcs@gmail.com> | 2016-07-31 17:15:22 +0200 |
---|---|---|
committer | Thierry Reding <treding@nvidia.com> | 2016-08-24 13:34:00 +0200 |
commit | 1a9d759331b832c3d667d9473661497faada6df8 (patch) | |
tree | bb72801d2df87b53c2be7184860541476c33c9f9 /include | |
parent | drm/dsi: Order DCS helpers by command code (diff) | |
download | linux-1a9d759331b832c3d667d9473661497faada6df8.tar.xz linux-1a9d759331b832c3d667d9473661497faada6df8.zip |
drm/dsi: Implement DCS set/get display brightness
Provide a small convenience wrapper that set/get the display brightness.
Cc: John Stultz <john.stultz@linaro.org>
Cc: Sumit Semwal <sumit.semwal@linaro.org>
Cc: Archit Taneja <archit.taneja@gmail.com>
Cc: Rob Clark <robdclark@gmail.com>
Cc: Jani Nikula <jani.nikula@linux.intel.com>
Cc: Thierry Reding <thierry.reding@gmail.com>
Cc: Emil Velikov <emil.l.velikov@gmail.com>
Signed-off-by: Vinay Simha BN <simhavcs@gmail.com>
Reviewed-by: Emil Velikov <emil.l.velikov@gmail.com>
Signed-off-by: Thierry Reding <treding@nvidia.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/drm/drm_mipi_dsi.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/drm/drm_mipi_dsi.h b/include/drm/drm_mipi_dsi.h index 4ba9dfc01825..4fef19064b0f 100644 --- a/include/drm/drm_mipi_dsi.h +++ b/include/drm/drm_mipi_dsi.h @@ -270,6 +270,10 @@ int mipi_dsi_dcs_set_tear_on(struct mipi_dsi_device *dsi, enum mipi_dsi_dcs_tear_mode mode); int mipi_dsi_dcs_set_pixel_format(struct mipi_dsi_device *dsi, u8 format); int mipi_dsi_dcs_set_tear_scanline(struct mipi_dsi_device *dsi, u16 scanline); +int mipi_dsi_dcs_set_display_brightness(struct mipi_dsi_device *dsi, + u16 brightness); +int mipi_dsi_dcs_get_display_brightness(struct mipi_dsi_device *dsi, + u16 *brightness); /** * struct mipi_dsi_driver - DSI driver |