You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This patch addresses various improvements based on reviewer suggestions:
- Removed unused index variable in parse_dt()
- Fixed misleading indentation in probe() conditional blocks
- Reworked DT bindings: switched to enum/oneOf and restricted voltage/current ranges
- Added driver-side range validation for voltage and current modes
- Replaced manual bit macros with FIELD_PREP() for DAC_CONFIG
- Removed unnecessary include: <linux/kernel.h>
- Sorted entries in Kconfig and Makefile
- Quoted DT required property names and simplified mutual-exclusion logic
- Tidied up whitespace, blank lines, and long lines
Signed-off-by: Bruce Tsao <[email protected]>
iio: dac: ad5413: apply reviewer cleanups
Address various reviewer comments and style fixes:
- Move FIELD_PREP mask definitions directly beneath their register defines
- Replace usleep_range() with fsleep() in wait loops
- Return -ETIMEDOUT on timeout instead of -EIO
- Use dev_err_probe() for probe-time failures in DT parsing
- Rename ad5413_find_closest_match() to ad5413_find_best_match()
- Change out_range to a pointer to avoid per-field copies
- Guard devm_mutex_init() with kernel version check; fall back to mutex_init()
- Remove redundant comments and simplify error paths
- Simplify pwr_down logic with ternary assignment
- Fix indentation, tab/space usage, and other style issues as per checkpatch
Signed-off-by: Bruce Tsao <[email protected]>
iio: dac: ad5413: final cleanups after style check
Address remaining checkpatch warnings:
- remove trailing '('
- adjust CamelCase enum name
- fix unnecessary parentheses
Signed-off-by: Bruce Tsao <[email protected]>
0 commit comments