summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/stackcollapse.py
diff options
context:
space:
mode:
authorAdam Ford <aford173@gmail.com>2024-09-14 14:27:46 +0300
committerVinod Koul <vkoul@kernel.org>2024-10-17 16:13:35 +0300
commit375ee44adb3640099508c5c0c01d86f0bdb16e97 (patch)
treeb05fc7c5e873ad3f8a42fcc733390b5e338b4984 /tools/perf/scripts/python/stackcollapse.py
parent4a5a9e2577d61a4ee3e9788e0c2b0c1cbc5ba7b3 (diff)
downloadlinux-375ee44adb3640099508c5c0c01d86f0bdb16e97.tar.xz
phy: freescale: fsl-samsung-hdmi: Simplify REG21_PMS_S_MASK lookup
The value of 'S' is writen to two places, PHY_REG3[7:4] and PHY_REG21[3:0]. There is a lookup table which contains the value of PHY_REG3. Rather than using a switch statement based on the pixel clock to search for the value of 'S' again, just shift the contents of PHY_REG3[7:4] >> 4 and place the value in PHY_REG21[3:0]. Doing this can eliminate an entire function. Signed-off-by: Adam Ford <aford173@gmail.com> Reviewed-by: Marco Felsch <m.felsch@pengutronix.de> Reviewed-by: Frieder Schrempf <frieder.schrempf@kontron.de> Tested-by: Frieder Schrempf <frieder.schrempf@kontron.de> Reviewed-by: Dominique Martinet <dominique.martinet@atmark-techno.com> Tested-by: Dominique Martinet <dominique.martinet@atmark-techno.com> Link: https://lore.kernel.org/r/20240914112816.520224-3-aford173@gmail.com Signed-off-by: Vinod Koul <vkoul@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions