Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp1819340rwb; Wed, 5 Oct 2022 05:24:36 -0700 (PDT) X-Google-Smtp-Source: AMsMyM4z2VIxqlrYEj0eiJ9tcXIKHIDKIW7YtIejkjU6fzCQ4J3+N+EOibx++oxP8hBlDhaP8AI8 X-Received: by 2002:a17:902:eccb:b0:178:1313:afa1 with SMTP id a11-20020a170902eccb00b001781313afa1mr32502814plh.97.1664972675978; Wed, 05 Oct 2022 05:24:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1664972675; cv=none; d=google.com; s=arc-20160816; b=t4YiIl1re4ms6jUFJJOaTzRgVWHk2FF4cRaZm73T+ynx5xPa0OVLghKXOHDlYMm0VA 0iM40Yzg3ahc4vG6rRy4Lsh1qlImFsBKRvV2UQWlcWkkl2DnsOom+7Nz/1AIJMD10Opd ZF1l9ze3l3+F04Kee6LkS14VZrvcpxjgSHkxokvTE+uT0EAx0Zy2QfPFdKcMdCrG+8GT llZRHiJmh+KZdlhQ7BxIKxg8FoEvVvVHl09benqpOqVSa0/6bBChVmuqr8nzXeIkQFs1 GkJ/NaQixj/C7Pr+i4BYwIXxTQdKj2ekN2heKrKGcSKffh74v9bLYx5d8lVR6AdrDoBk QIxw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:organization:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=MIFJGq20SpDBGmpjG+MCg36zVjSe5hxFyEDOdYWXHVo=; b=N4QXq6ZPc+JQagNq4KbkkVRkxLku+pPWD6ZY/OAD6tReUvDiJ04irLS980LHIMvS4b 0RK7gtV5y0G0msX8eMER/rtZE4fFdiCFhEp4laKEDtw/HMKWK85Yjt93zKokVRi0E73o vy9l/WHGpJCA3i92GnbyFEc8rfkBZHQOJXKl0wj4GieoTIOrYIMOeYZdBFufsIzNE8A3 KrdRcJiW/TF1yGIecvRRqyx6uTZy6b8miBf8tlhp4fUeylSWTkt/32ljuuFReSdyQsjh +1WANI5Qtp6oQRoAWEWooZt3TfrB9tYrQsL9mNoFkssD5QqImEAHy1/c+IVtx8oeW5Fy yLPg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=jwt49dlH; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id b21-20020a056a0002d500b0053aee83e1f2si15562566pft.13.2022.10.05.05.24.23; Wed, 05 Oct 2022 05:24:35 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=jwt49dlH; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230041AbiJEMPw (ORCPT + 99 others); Wed, 5 Oct 2022 08:15:52 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38296 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229901AbiJEMPu (ORCPT ); Wed, 5 Oct 2022 08:15:50 -0400 Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AD495491D6; Wed, 5 Oct 2022 05:15:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1664972149; x=1696508149; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=I/0/uca7PMc1JB5EXowgPj8CdkujWBJBOjIoOK0lALU=; b=jwt49dlHesGnub2c+Ds5OvLQDRnB37QbswMpmkptptJ26pcrJClPWHm1 E9bBOuGJEXkMH/X+GW3u/kXzc2KB5TbbaNE4rCKWLvJq3TRL/PAfDGjin nvblShxYUnnWn5RjmxZQE23+bTsr92Hz8xmr8KyDJ+rOBVqvLh+g75Rlk jvb3/5ABtBi+qHjYr6Pp161BjOkLQjGqyR6S+Gzdg5wele+R80mtrRzEF pu7J/JAkPYBtqwcIB6K903uJtmBYCOx928oqwVSPidxkexjO1waQ7Z+ip d1B8mOYPYi3ZqnqbyvWmT10zJbCw45W4agOKA6SjlEfuNUGl75ajC+KSh Q==; X-IronPort-AV: E=McAfee;i="6500,9779,10490"; a="304126065" X-IronPort-AV: E=Sophos;i="5.95,159,1661842800"; d="scan'208";a="304126065" Received: from orsmga005.jf.intel.com ([10.7.209.41]) by orsmga102.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 05 Oct 2022 05:15:49 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6500,9779,10490"; a="799468529" X-IronPort-AV: E=Sophos;i="5.95,159,1661842800"; d="scan'208";a="799468529" Received: from smile.fi.intel.com ([10.237.72.54]) by orsmga005.jf.intel.com with ESMTP; 05 Oct 2022 05:15:45 -0700 Received: from andy by smile.fi.intel.com with local (Exim 4.96) (envelope-from ) id 1og3JP-002eDW-0J; Wed, 05 Oct 2022 15:15:43 +0300 Date: Wed, 5 Oct 2022 15:15:42 +0300 From: Andy Shevchenko To: ChiaEn Wu Cc: pavel@ucw.cz, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, matthias.bgg@gmail.com, jic23@kernel.org, lars@metafoo.de, chiaen_wu@richtek.com, alice_chen@richtek.com, cy_huang@richtek.com, linux-leds@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, linux-kernel@vger.kernel.org, linux-iio@vger.kernel.org, szunichen@gmail.com Subject: Re: [PATCH v13 5/5] leds: flash: mt6370: Add MediaTek MT6370 flashlight support Message-ID: References: <1bcd19dbd09650ddac7b96b0fe2932698be2731e.1664991040.git.chiaen_wu@richtek.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1bcd19dbd09650ddac7b96b0fe2932698be2731e.1664991040.git.chiaen_wu@richtek.com> Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo X-Spam-Status: No, score=-4.3 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE,SPF_NONE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Oct 05, 2022 at 07:43:58PM +0800, ChiaEn Wu wrote: > From: Alice Chen > > The MediaTek MT6370 is a highly-integrated smart power management IC, > which includes a single cell Li-Ion/Li-Polymer switching battery > charger, a USB Type-C & Power Delivery (PD) controller, dual Flash > LED current sources, a RGB LED driver, a backlight WLED driver, > a display bias driver and a general LDO for portable devices. > > Add support for the MT6370 Flash LED driver. Flash LED in MT6370 > has 2 channels and support torch/strobe mode. ... > +config LEDS_MT6370_FLASH > + tristate "Flash LED Support for MediaTek MT6370 PMIC" > + depends on LEDS_CLASS && OF Why do you have OF dependency? > + depends on LEDS_CLASS_FLASH || !LEDS_CLASS_FLASH > + depends on V4L2_FLASH_LED_CLASS || !V4L2_FLASH_LED_CLASS > + depends on MFD_MT6370 > + help > + Support 2 channels and torch/strobe mode. > + Say Y here to enable support for > + MT6370_FLASH_LED device. > + > + This driver can also be built as a module. If so, the module > + will be called "leds-mt6370-flash". -- With Best Regards, Andy Shevchenko