summaryrefslogtreecommitdiff
path: root/scripts/lib
diff options
context:
space:
mode:
authorAndré Draszik <andre.draszik@linaro.org>2025-04-09 23:37:46 +0300
committerAlexandre Belloni <alexandre.belloni@bootlin.com>2025-06-24 00:58:39 +0300
commit002cc0ee90e6172ef40ae95c248bf6ce67fb3f3f (patch)
tree8d4292f3cd118533c3df35c97e0ecddcf4e9cf13 /scripts/lib
parent19272b37aa4f83ca52bdf9c16d5d81bdd1354494 (diff)
downloadlinux-002cc0ee90e6172ef40ae95c248bf6ce67fb3f3f.tar.xz
rtc: s5m: cache device type during probe
platform_get_device_id() is called mulitple times during probe to retrieve the device type. This makes the code harder to read than necessary. Just get the type once, which also trims the lengths of the lines involved. Signed-off-by: André Draszik <andre.draszik@linaro.org> Link: https://lore.kernel.org/r/20250409-s2mpg10-v4-25-d66d5f39b6bf@linaro.org Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Diffstat (limited to 'scripts/lib')
0 files changed, 0 insertions, 0 deletions