Received: by 10.192.165.156 with SMTP id m28csp723502imm; Mon, 16 Apr 2018 07:44:13 -0700 (PDT) X-Google-Smtp-Source: AIpwx48+fAkPkC1gGbtn61/mNxzXoX9Vvg+/a0jbs27NEJ8FR1gskQjFUEu9vhaHK4ZOg2KO702G X-Received: by 2002:a17:902:8e83:: with SMTP id bg3-v6mr15445908plb.144.1523889853016; Mon, 16 Apr 2018 07:44:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1523889852; cv=none; d=google.com; s=arc-20160816; b=PYiLnJQXFZu+ONSs3v/YrwVQZUKAjcvROUMe/2t8P2NUM8N7cEOCDzgQwdTfK0MGLQ q0e/uf0u6yNLZG+D/S6R/q6a6Db4XZ8EXND9poJLoCv7r1V98BUygUgBifB31btUkLro Ayb8/0E6jK99kKpXncX0V1QrJ52+y6J60EC3xutS6q3+F3tafdaHUcLCIHaQRF24Hulp ULr7J/RQbOyMJUTMH6MYJzw/MW43mIxczUsFbjtkBjvv4hp9f3HXY2/BZj1ag7e1BOYJ 3rZj0nDDdUOBeFw0Z0F7J4iPiuYR8r+87ldFywmq7hHO6cQa924F6D1VPsNpqxG8KM8j 55hQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-transfer-encoding:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature :arc-authentication-results; bh=Wc++XMlFN0HJ2N/nskc2vKCMvCBbw/L2t6AdhPjtIqs=; b=cD6kAKeTXnKCI4mxyO0BK9x0J9iJQ3obQsyyqt0eHjb6LCu90lsDVFjxVZPn5RgEWt EesQne+XTbtrfNO7UVbpTxXA1bl1i3MX08a8lOLF1vhg6ms6AyBkYUJLnVWLbfOgmmY9 fLG1W6crALUBBDUkg9bwhxm0StOs71+d1zn5dZRtE1JSWb3RbHucJCfAQt3pt2Sy+fqL kLF1oHILSuTodoBX13CIjQyVYphZv+N0E/5KqVNp/IXlGgGcgR++i8Nyv47RuRwBiv+f Ge9qe6oTDkSpFa37gRzCHQZ5MdUckxR6tviT/aUls4BKTrF8xfReObCjbRIEEUorOTSv 3weQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=NGa2n3rK; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id o12si9963848pgc.381.2018.04.16.07.43.59; Mon, 16 Apr 2018 07:44:12 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=NGa2n3rK; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752497AbeDPOmu (ORCPT + 99 others); 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 Received: by mail-wr0-f193.google.com with SMTP id d19so26788044wre.1 for ; Mon, 16 Apr 2018 07:42:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:content-transfer-encoding:in-reply-to :user-agent; bh=Wc++XMlFN0HJ2N/nskc2vKCMvCBbw/L2t6AdhPjtIqs=; b=NGa2n3rKdlFwK9SlvOoDAVp/D1iDgN4X4jt9YNsiqLII/j1UqRoNIufYsf0yMZkegh sQp5qPslETuS85l8hSPyYtKYnMD/Bv7HAdy7TVPfFdmctzWUc3+7kRKsTObx3L/pN/Iq 0aZY5ceELHQebezA8hKeiMmgvlraNG2AoB9+U= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:content-transfer-encoding :in-reply-to:user-agent; bh=Wc++XMlFN0HJ2N/nskc2vKCMvCBbw/L2t6AdhPjtIqs=; b=rvPDVGmb1okvJ5nMVH9oty7ekk0Q7cH5qsLttvwOv2DXwMogjOdwvkgM35+hh1bOZj YrYXpDgmcjEqsvCuFv190EFukwx+aTOxhV/yVXCZusGYqLb3Y2rrkbDclAk1G9yIGYoP VTaJbidAxNMdUnx2h4jNboqmFTuYH6XWq+ac5r6KmZh4IVZUa6H6UKYw0+uSvDlz8gNt MrzTOa8wd1cuDoBZmOf6FU2w0dWY6Kx1It/WwbkfX+xfmHcceN/VmIp62i6O1zX0FWvm BpXQ+b2jL6cY8rW37UPuHImiClEI9OYKQinre1kC3dK2usfYMRtmzOaNeu9aSGALutyT GrGQ== X-Gm-Message-State: ALQs6tA/27v2Jc2UBWGAYcXiT9Re59FmODADtHyjy6iH45mByrVfJom7 wSHj0ivVLeBUYYYdIUCIrB418g== X-Received: by 10.223.199.146 with SMTP id l18mr10758998wrg.224.1523889766466; Mon, 16 Apr 2018 07:42:46 -0700 (PDT) Received: from dell ([2.27.167.70]) by smtp.gmail.com with ESMTPSA id i52sm16227686wra.82.2018.04.16.07.42.45 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 16 Apr 2018 07:42:45 -0700 (PDT) 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 Precedence: bulk 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