Hi Guenter,
On 18-01-2023 07:13 pm, Guenter Roeck wrote:
On 1/18/23 03:15, Naresh Solanki wrote:I'm working on adding pmbus irq handler.
Move the PMBus status flag map (pmbus_regulator_status_flag_map)
outside of the regulator #if block and update the associated
variable/struct name to reflect a generic PMBus status. Also retain
the regulator error flag for use in determining regulator specific error.
This will make the PMBus status flag map more versatile and easier to
incorporate into different contexts and functions.
Signed-off-by: Naresh Solanki <Naresh.Solanki@xxxxxxxxxxxxx>
Sorry, I don't see the point of moving a structure including
regulator error codes outside regulator code.
Since irq handler is regulator independent, this change is needed.