Re: [PATCH v5 4/5] typec: tcpm: Represent source supply through power_supply

2018-03-22 Thread Guenter Roeck
On 03/22/2018 03:40 AM, Adam Thomson wrote: On 22 March 2018 04:09, Guenter Roeck wrote: +static int tcpm_psy_set_prop(struct power_supply *psy, +enum power_supply_property psp, +const union power_supply_propval *val) +{ + struct

Re: [PATCH v5 4/5] typec: tcpm: Represent source supply through power_supply

2018-03-22 Thread Guenter Roeck
On 03/22/2018 03:40 AM, Adam Thomson wrote: On 22 March 2018 04:09, Guenter Roeck wrote: +static int tcpm_psy_set_prop(struct power_supply *psy, +enum power_supply_property psp, +const union power_supply_propval *val) +{ + struct

RE: [PATCH v5 4/5] typec: tcpm: Represent source supply through power_supply

2018-03-22 Thread Adam Thomson
On 22 March 2018 04:09, Guenter Roeck wrote: > > +static int tcpm_psy_set_prop(struct power_supply *psy, > > +enum power_supply_property psp, > > +const union power_supply_propval *val) > > +{ > > + struct tcpm_port *port =

RE: [PATCH v5 4/5] typec: tcpm: Represent source supply through power_supply

2018-03-22 Thread Adam Thomson
On 22 March 2018 04:09, Guenter Roeck wrote: > > +static int tcpm_psy_set_prop(struct power_supply *psy, > > +enum power_supply_property psp, > > +const union power_supply_propval *val) > > +{ > > + struct tcpm_port *port =

Re: [PATCH v5 4/5] typec: tcpm: Represent source supply through power_supply

2018-03-21 Thread Guenter Roeck
On 03/20/2018 07:33 AM, Adam Thomson wrote: This commit adds a power_supply class instance to represent a PD source's voltage and current properties. This provides an interface for reading these properties from user-space or other drivers. For PPS enabled Sources, this also provides write

Re: [PATCH v5 4/5] typec: tcpm: Represent source supply through power_supply

2018-03-21 Thread Guenter Roeck
On 03/20/2018 07:33 AM, Adam Thomson wrote: This commit adds a power_supply class instance to represent a PD source's voltage and current properties. This provides an interface for reading these properties from user-space or other drivers. For PPS enabled Sources, this also provides write