summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorAmit Barzilai <amit.barzilai22@gmail.com>2026-09-14 11:59:28 +0300
committerJavier Martinez Canillas <javierm@redhat.com>2026-09-14 11:14:37 +0200
commitd89a37ba57d7ace46bb30947f4666c72dafcf4be (patch)
tree95e45a39f7800cac77a4df751eb9d5dcf84cbac7 /drivers
parente9bebd4b411193dfd77a9682f1715da1478c5bd4 (diff)
drm/ssd130x: Constify ssd130x_write_data() 'values' parameter
At no point does ssd130x_write_data() change the bytes it receives via the 'values' parameter. Constify the parameter so const-qualified buffers pass through without casting away const. Signed-off-by: Amit Barzilai <amit.barzilai22@gmail.com> Reviewed-by: Javier Martinez Canillas <javierm@redhat.com> Reviewed-by: Andy Shevchenko <andriy.shevchenko@intel.com> Link: https://patch.msgid.link/20260914085931.66857-4-amit.barzilai22@gmail.com Signed-off-by: Javier Martinez Canillas <javierm@redhat.com>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/gpu/drm/solomon/ssd130x.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/solomon/ssd130x.c b/drivers/gpu/drm/solomon/ssd130x.c
index cbf77a74c4fa..1d834be6243b 100644
--- a/drivers/gpu/drm/solomon/ssd130x.c
+++ b/drivers/gpu/drm/solomon/ssd130x.c
@@ -252,7 +252,7 @@ static inline struct ssd130x_device *drm_to_ssd130x(struct drm_device *drm)
/*
* Helper to write data (SSD13XX_DATA) to the device.
*/
-static int ssd130x_write_data(struct ssd130x_device *ssd130x, u8 *values, int count)
+static int ssd130x_write_data(struct ssd130x_device *ssd130x, const u8 *values, int count)
{
return regmap_bulk_write(ssd130x->regmap, SSD13XX_DATA, values, count);
}