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

phy: phy-rockchip-samsung-hdptx: annotate regmap register-callback

The variant of the driver in the vendor-tree contained those handy
comments in the regmap register callback. Having the different ranges
describe what they are looks helpful.

Signed-off-by: Heiko Stuebner <heiko.stuebner@cherry.de>
Reviewed-by: Cristian Ciocaltea <cristian.ciocaltea@collabora.com>
Reviewed-by: Sebastian Reichel <sebastian.reichel@collabora.com>
Link: https://lore.kernel.org/r/20241206103401.1780416-2-heiko@sntech.de
Signed-off-by: Vinod Koul <vkoul@kernel.org>

authored by

Heiko Stuebner and committed by
Vinod Koul
c8f7d65c 2014c95a

+7 -7
+7 -7
drivers/phy/rockchip/phy-rockchip-samsung-hdptx.c
··· 560 560 static bool rk_hdptx_phy_is_rw_reg(struct device *dev, unsigned int reg) 561 561 { 562 562 switch (reg) { 563 - case 0x0000 ... 0x029c: 564 - case 0x0400 ... 0x04a4: 565 - case 0x0800 ... 0x08a4: 566 - case 0x0c00 ... 0x0cb4: 567 - case 0x1000 ... 0x10b4: 568 - case 0x1400 ... 0x14b4: 569 - case 0x1800 ... 0x18b4: 563 + case 0x0000 ... 0x029c: /* CMN Register */ 564 + case 0x0400 ... 0x04a4: /* Sideband Register */ 565 + case 0x0800 ... 0x08a4: /* Lane Top Register */ 566 + case 0x0c00 ... 0x0cb4: /* Lane 0 Register */ 567 + case 0x1000 ... 0x10b4: /* Lane 1 Register */ 568 + case 0x1400 ... 0x14b4: /* Lane 2 Register */ 569 + case 0x1800 ... 0x18b4: /* Lane 3 Register */ 570 570 return true; 571 571 } 572 572