From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752557AbeDPOmu (ORCPT ); Mon, 16 Apr 2018 10:42:50 -0400 Received: from mail-wr0-f193.google.com ([209.85.128.193]:34066 "EHLO mail-wr0-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750989AbeDPOmr (ORCPT ); Mon, 16 Apr 2018 10:42:47 -0400 X-Google-Smtp-Source: AIpwx4/Xtg0QWAe9YI0mnQzoUyx2sOCG6KXrqbsT6JFe18OGiVwvpOVZ74lBCrvDqJFjIgyUOV2mQA== Date: Mon, 16 Apr 2018 15:42:43 +0100 From: Lee Jones To: Sebastian Reichel Cc: Sebastian Reichel , Milo Kim , Daniel Thompson , Rob Herring , Tony Lindgren , Jingoo Han , Mark Rutland , linux-kernel@vger.kernel.org, linux-fbdev@vger.kernel.org, devicetree@vger.kernel.org, linux-omap@vger.kernel.org Subject: Re: [PATCHv4 07/10] mfd: ti-lmu: register one backlight device per channel Message-ID: <20180416144243.3xslyuzgbfz7dc2j@dell> References: <20180330172414.26575-1-sebastian.reichel@collabora.co.uk> <20180330172414.26575-8-sebastian.reichel@collabora.co.uk> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20180330172414.26575-8-sebastian.reichel@collabora.co.uk> User-Agent: NeoMutt/20170609 (1.8.3) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, 30 Mar 2018, Sebastian Reichel wrote: > All LMU devices support multiple channels, that can be controlled > independently. This registers one backlight sub-device per channel. > > Signed-off-by: Sebastian Reichel > --- > drivers/mfd/ti-lmu.c | 62 +++++++++++++++++++++++++++++++++++++--------- > include/linux/mfd/ti-lmu.h | 4 +++ > 2 files changed, 54 insertions(+), 12 deletions(-) > > diff --git a/drivers/mfd/ti-lmu.c b/drivers/mfd/ti-lmu.c > index f43b8acc30e1..f4311d215dfa 100644 > --- a/drivers/mfd/ti-lmu.c > +++ b/drivers/mfd/ti-lmu.c > @@ -56,8 +56,16 @@ static void ti_lmu_disable_hw(void *data) > > static const struct mfd_cell lm3532_devices[] = { > { > - .name = "ti-lmu-backlight", > - .id = LM3532, > + .name = "ti-lmu-led-backlight", > + .id = 0, What's the reason for you manually setting .id? > + }, > + { > + .name = "ti-lmu-led-backlight", > + .id = 1, > + }, > + { > + .name = "ti-lmu-led-backlight", > + .id = 2, > }, > }; -- Lee Jones [李琼斯] Linaro Services Technical Lead Linaro.org │ Open source software for ARM SoCs Follow Linaro: Facebook | Twitter | Blog