Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

drm/dsi: Order DCS helpers by command code

Most of these helpers had been introduced in the correct order, but some
were simply appended, which wasn't detected when they were applied.

Signed-off-by: Thierry Reding <treding@nvidia.com>

+22 -22
+21 -21
drivers/gpu/drm/drm_mipi_dsi.c
··· 999 999 EXPORT_SYMBOL(mipi_dsi_dcs_set_tear_on); 1000 1000 1001 1001 /** 1002 + * mipi_dsi_dcs_set_pixel_format() - sets the pixel format for the RGB image 1003 + * data used by the interface 1004 + * @dsi: DSI peripheral device 1005 + * @format: pixel format 1006 + * 1007 + * Return: 0 on success or a negative error code on failure. 1008 + */ 1009 + int mipi_dsi_dcs_set_pixel_format(struct mipi_dsi_device *dsi, u8 format) 1010 + { 1011 + ssize_t err; 1012 + 1013 + err = mipi_dsi_dcs_write(dsi, MIPI_DCS_SET_PIXEL_FORMAT, &format, 1014 + sizeof(format)); 1015 + if (err < 0) 1016 + return err; 1017 + 1018 + return 0; 1019 + } 1020 + EXPORT_SYMBOL(mipi_dsi_dcs_set_pixel_format); 1021 + 1022 + /** 1002 1023 * mipi_dsi_dcs_set_tear_scanline() - set the scanline to use as trigger for 1003 1024 * the Tearing Effect output signal of the display module 1004 1025 * @dsi: DSI peripheral device ··· 1040 1019 return 0; 1041 1020 } 1042 1021 EXPORT_SYMBOL(mipi_dsi_dcs_set_tear_scanline); 1043 - 1044 - /** 1045 - * mipi_dsi_dcs_set_pixel_format() - sets the pixel format for the RGB image 1046 - * data used by the interface 1047 - * @dsi: DSI peripheral device 1048 - * @format: pixel format 1049 - * 1050 - * Return: 0 on success or a negative error code on failure. 1051 - */ 1052 - int mipi_dsi_dcs_set_pixel_format(struct mipi_dsi_device *dsi, u8 format) 1053 - { 1054 - ssize_t err; 1055 - 1056 - err = mipi_dsi_dcs_write(dsi, MIPI_DCS_SET_PIXEL_FORMAT, &format, 1057 - sizeof(format)); 1058 - if (err < 0) 1059 - return err; 1060 - 1061 - return 0; 1062 - } 1063 - EXPORT_SYMBOL(mipi_dsi_dcs_set_pixel_format); 1064 1022 1065 1023 static int mipi_dsi_drv_probe(struct device *dev) 1066 1024 {
+1 -1
include/drm/drm_mipi_dsi.h
··· 265 265 u16 end); 266 266 int mipi_dsi_dcs_set_page_address(struct mipi_dsi_device *dsi, u16 start, 267 267 u16 end); 268 - int mipi_dsi_dcs_set_tear_scanline(struct mipi_dsi_device *dsi, u16 scanline); 269 268 int mipi_dsi_dcs_set_tear_off(struct mipi_dsi_device *dsi); 270 269 int mipi_dsi_dcs_set_tear_on(struct mipi_dsi_device *dsi, 271 270 enum mipi_dsi_dcs_tear_mode mode); 272 271 int mipi_dsi_dcs_set_pixel_format(struct mipi_dsi_device *dsi, u8 format); 272 + int mipi_dsi_dcs_set_tear_scanline(struct mipi_dsi_device *dsi, u16 scanline); 273 273 274 274 /** 275 275 * struct mipi_dsi_driver - DSI driver