[lkml]   [2020]   [Jan]   [12]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: [PATCH v3 5/8] power: supply: axp20x_usb_power: Use a match structure
On Mon, Jan 13, 2020 at 11:53 AM Samuel Holland <> wrote:
> Instead of ad-hoc variant ID checks throughout the code, let's start
> moving the variant-specific details to a match structure. This allows
> for future flexibility, and it better matches the other axp20x power
> supply drivers.
> This commit removes most variant checks from axp20x_usb_power_probe().
> Other parts of the driver still do ID matching; they are left unchanged
> for now.
> Signed-off-by: Samuel Holland <>

Reviewed-by: Chen-Yu Tsai <>

 \ /
  Last update: 2020-01-13 05:10    [W:0.084 / U:0.524 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site