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

Configure Feed

Select the types of activity you want to include in your feed.

drm/panel: ili9322: Remove redundant volatle_reg() operation

The ili9322 driver has a volatile_reg() operation in it's regmap which
always returns false. This is redundant since it is the default in the
regmap core, remove the operation for a trivial code size and performance
improvement.

Signed-off-by: Mark Brown <broonie@kernel.org>
Reviewed-by: Neil Armstrong <neil.armstrong@linaro.org>
Signed-off-by: Neil Armstrong <neil.armstrong@linaro.org>
Link: https://patchwork.freedesktop.org/patch/msgid/20231001-drm-sn65dsi83-maple-v1-1-5519799a55e5@kernel.org

authored by

Mark Brown and committed by
Neil Armstrong
c8c575eb 0908a022

-6
-6
drivers/gpu/drm/panel/panel-ilitek-ili9322.c
··· 325 325 .val_format_endian_default = REGMAP_ENDIAN_BIG, 326 326 }; 327 327 328 - static bool ili9322_volatile_reg(struct device *dev, unsigned int reg) 329 - { 330 - return false; 331 - } 332 - 333 328 static bool ili9322_writeable_reg(struct device *dev, unsigned int reg) 334 329 { 335 330 /* Just register 0 is read-only */ ··· 338 343 .val_bits = 8, 339 344 .max_register = 0x44, 340 345 .cache_type = REGCACHE_RBTREE, 341 - .volatile_reg = ili9322_volatile_reg, 342 346 .writeable_reg = ili9322_writeable_reg, 343 347 }; 344 348