Hi Guenter,
Thanks for your response but I need some more valuable suggestions...
In the pmbus_data structure, we are updating the vout_out mode
value based on the config ( linear, vid .direct) and this structure is declared
in pmbus_core.c .so the low-level driver could not able to access this
structure.
Guidance required,
1. Move the pumbus_data structure declaration to pmbus.h, so that low-level
the driver can check and update the vout_mode if the value
is not proper. (or)
2. if the vout_mode attribute value is exposed in the sysfs, the
user-level application
can modify the value. ( if the value is not proper).
(or)
3. if an ioctl call is exposed for the vout_mode then the
user-level application can
able to update the value. ( if the value is not proper).
(or) guide me to a better approach to handle this issue.
For reference,
UCD90xx vendor claims that vout_mode value should be present
if the chip
supports PMBUS_VOUT_MODE command. Hence the patch validated the vout_mode
value for PMBUS_VOUT_MODE supported chip.