diff options
author | André Draszik <andre.draszik@linaro.org> | 2025-04-09 21:37:46 +0100 |
---|---|---|
committer | Alexandre Belloni <alexandre.belloni@bootlin.com> | 2025-06-23 23:58:39 +0200 |
commit | 002cc0ee90e6172ef40ae95c248bf6ce67fb3f3f (patch) | |
tree | 8d4292f3cd118533c3df35c97e0ecddcf4e9cf13 /scripts/lib/kdoc/kdoc_parser.py | |
parent | 19272b37aa4f83ca52bdf9c16d5d81bdd1354494 (diff) |
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/kdoc/kdoc_parser.py')
0 files changed, 0 insertions, 0 deletions