linux/drivers/soc/mediatek
AngeloGioacchino Del Regno d1e5d531d2
soc: mediatek: mtk-mutex: Reduce type size for mtk_mutex_data members
All of mutex_mod and mutex_table_mod contain an array of bit
numbers, which can go from 0 to 63, it is hence not needed to
use an unsigned 32-bits integer to store that: change them to
unsigned 8-bits instead.

As for the mutex_sof table since this directly contains the values
to write to the DISP_MUTEXn_CTL register, which has only bits [13:0]
(so this register is effectively 14 bits long), change that to use
unsigned 16-bits.

The type of mutex_{mod,sof}_reg was also changed to 16 bits, as
the maximum value that those will ever have is 0x800, because it
calculates as 0x30 + (0x20 * n) where n's maximum value is 63.

This reduces module size and brings no functional changes.

Before:
   text	   data	    bss	    dec	    hex	filename
   9929	    512	      0	  10441	   28c9	mtk-mutex.o

After:
   text	   data	    bss	    dec	    hex	filename
   7425	    512	      0	   7937	   1f01	mtk-mutex.o

Link: https://lore.kernel.org/r/20240729122538.989855-1-angelogioacchino.delregno@collabora.com
Signed-off-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
2024-07-30 10:58:46 +02:00
..
Kconfig soc: mediatek: mtk-socinfo: depends on CONFIG_SOC_BUS 2024-04-23 12:09:12 +02:00
Makefile soc: mediatek: mtk-socinfo: Add driver for getting chip information 2024-01-29 11:16:10 +01:00
mt8167-mmsys.h soc: mediatek: add DDP_DOMPONENT_DITHER0 enum for mt8195 vdosys0 2022-04-22 14:38:53 +02:00
mt8173-mmsys.h soc: mediatek: mtk-mmsys: Split out MT8173 mmsys DDP routing table 2023-04-02 19:01:40 +02:00
mt8183-mmsys.h soc: mediatek: add DDP_DOMPONENT_DITHER0 enum for mt8195 vdosys0 2022-04-22 14:38:53 +02:00
mt8186-mmsys.h soc: mediatek: Add all settings to mtk_mmsys_ddp_dpi_fmt_config func 2022-11-08 19:25:30 +01:00
mt8188-mmsys.h soc: mediatek: Add MT8188 VDOSYS reset bit map 2023-12-11 11:36:12 +01:00
mt8192-mmsys.h soc: mediatek: add DDP_DOMPONENT_DITHER0 enum for mt8195 vdosys0 2022-04-22 14:38:53 +02:00
mt8195-mmsys.h soc: mediatek: mmsys: add config api for RSZ switching and DCM 2023-03-06 14:35:44 +01:00
mt8365-mmsys.h soc: mediatek: mt8365-mmsys: add DPI/HDMI display path 2022-06-17 12:25:57 +02:00
mtk-cmdq-helper.c MediaTek driver updates for v6.11 2024-06-28 18:41:00 +02:00
mtk-devapc.c soc/mediatek: mtk-devapc: Convert to platform remove callback returning void 2023-10-14 23:27:25 +02:00
mtk-infracfg.c soc: mediatek: mtk-infracfg: Disable ACP on MT8192 2022-03-01 08:21:28 +01:00
mtk-mmsys.c soc: mediatek: Disable 9-bit alpha in ETHDR 2024-06-27 12:41:51 +02:00
mtk-mmsys.h soc: mediatek: Support reset bit mapping in mmsys driver 2023-12-11 11:36:12 +01:00
mtk-mutex.c soc: mediatek: mtk-mutex: Reduce type size for mtk_mutex_data members 2024-07-30 10:58:46 +02:00
mtk-pmic-wrap.c soc: mediatek: pwrap: Use devm_clk_bulk_get_all_enable() 2024-07-30 10:57:20 +02:00
mtk-regulator-coupler.c soc: mediatek: Introduce mediatek-regulator-coupler driver 2023-01-30 11:27:49 +01:00
mtk-socinfo.c soc: mediatek: mtk-socinfo: Correct the marketing name for MT8188GV 2024-04-23 12:16:56 +02:00
mtk-svs.c soc: mediatek: mtk-svs: Append "-thermal" to thermal zone names 2024-04-23 12:09:12 +02:00