Received: by 2002:a05:6a10:af89:0:0:0:0 with SMTP id iu9csp2521286pxb; Sun, 23 Jan 2022 07:18:53 -0800 (PST) X-Google-Smtp-Source: ABdhPJxx4UkPr7bL31Hq+1H5TQvYFeXD5pyTVlkrqFwOVYV6FBEWrM9nDqcQ8Q+KegjLSk7vb4Yu X-Received: by 2002:a17:902:9305:b0:14a:db23:eb5d with SMTP id bc5-20020a170902930500b0014adb23eb5dmr11016423plb.73.1642951133259; Sun, 23 Jan 2022 07:18:53 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1642951133; cv=none; d=google.com; s=arc-20160816; b=CaUQW8noCnB5Rf2RQYuGbl4LqO4PeqBCg0LJ1M5rXwNaK0rnPgHE35aN5U6YhJ8Whx H/87BntcafzRDPi1FL39FckWNkL9Lwu2qepGmYX6ffjgjMBtCsMNyEcXbFIBSLR6C9mF SNGtYn7Z0kcsV3Yin62eieNwzguiQsBJ/ae99SSu9oK7PC6XmuVJeo2Z9eWhmssr1FAR DYkC8xw3MOOZxNqC5NHHGoe2h5D77GLYl/wvJWsOuaaCtqbLew1iRbBtq8l/ooE/OJMy zjEIKEzsCfETPkb9HR6A9pkEhFDc4bJ9g71ZFtoSiDU6P6pTpjBQwhHpohl4OicZH1tG 9CIg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date :dkim-signature; bh=kr3QZPqonbXOwnyQ5ivweiwhcCpoJ1TESGbaJprkNZE=; b=rDO1+YkEy36g4nKg9GDKQkt5aUxT685C1x2V5kfDjuQPcYXWydBbU2xFHLcGVOJAwU jo2h6W2hFGv3eBxAf8ELpBmU4OqC2AYnEGqLJLVUEAxQj0iUz5NjXS+/nOZB24klKR8C aLy8QbsX4kwprZXWnf9uAjVpvZNLbCJxL2rzYmmM0i5HylV8fcOxPXcQWVplCh1Xek0U keKEr1RJDmPSWVIIDKLavFmiIEaNSIY6jTLR/zXpnBmq1MRSGMtxpeG3K7KgTEuSPHu5 t6qmQSwtlH6+BfuTOq7g9f2Fja8BPOlQXhR1ARd/oRprU/IyXLJeZAsbmMkZqaMR3CHS yYoQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Zq3oPdsd; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id r3si10731878pff.365.2022.01.23.07.18.41; Sun, 23 Jan 2022 07:18:53 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Zq3oPdsd; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234522AbiAVQct (ORCPT + 99 others); Sat, 22 Jan 2022 11:32:49 -0500 Received: from ams.source.kernel.org ([145.40.68.75]:54386 "EHLO ams.source.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234451AbiAVQco (ORCPT ); Sat, 22 Jan 2022 11:32:44 -0500 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 79803B8091A; Sat, 22 Jan 2022 16:32:43 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 917E6C004E1; Sat, 22 Jan 2022 16:32:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1642869162; bh=O1YKP2zxAjxpYTB2jpe00SOrFFC7mU73AH0qfZgF2cU=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=Zq3oPdsdyVX+OzGH3z8AmCWvJL6SOUkLbu2T+K74FakINASMU7CVl0AV6YBE0jcSX Oj1GA3fw3gE5GdfrxszdfD86JtsD4DqO0lvCv/xciWpwXdu+erYEE633mOSEtbBiK2 RCY7OBGJRW94eOVh966ZvDFku1SJxZ3o6pkCxaHlwLWanMkN7bE7IjMpegRCFCYIlN cqLdAB49NKTBdyO43ArCI3/gP2ium+jZ7tMvsSFwcfxv32bcoX7wQgaRbnrgVkJpJn xhKDa92qBIl/MdGKz5EuO+n6B74Qdl3R7w5WVs7FvZY+N6ClNhy293ONRxDb8MLjjc CtZz620cKBlcQ== Date: Sat, 22 Jan 2022 16:38:51 +0000 From: Jonathan Cameron To: Luiz Sampaio Cc: Kevin Tsai , Lars-Peter Clausen , linux-kernel@vger.kernel.org, linux-iio@vger.kernel.org Subject: Re: [PATCH 04/31] iio: light: cm3605: changing LED_* from enum led_brightness to actual value Message-ID: <20220122163851.1aa52770@jic23-huawei> In-Reply-To: <20220121165436.30956-5-sampaio.ime@gmail.com> References: <20220121165436.30956-1-sampaio.ime@gmail.com> <20220121165436.30956-5-sampaio.ime@gmail.com> X-Mailer: Claws Mail 4.0.0 (GTK+ 3.24.31; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, 21 Jan 2022 13:54:09 -0300 Luiz Sampaio wrote: > The enum led_brightness, which contains the declaration of LED_OFF, > LED_ON, LED_HALF and LED_FULL is obsolete, as the led class now supports > max_brightness. No sign-off and please always cc everyone on the cover letter of a series including all mailing lists. Otherwise we have no visibility of the reasoning behind the change. We all need to see the cover letter. Sure I can go search for this patch on lore.kernel.org, but why make it hard :) Thanks, Jonathan > --- > drivers/iio/light/cm3605.c | 10 +++++----- > 1 file changed, 5 insertions(+), 5 deletions(-) > > diff --git a/drivers/iio/light/cm3605.c b/drivers/iio/light/cm3605.c > index 50d34a98839c..f60db6cd9e6d 100644 > --- a/drivers/iio/light/cm3605.c > +++ b/drivers/iio/light/cm3605.c > @@ -238,7 +238,7 @@ static int cm3605_probe(struct platform_device *pdev) > > /* Just name the trigger the same as the driver */ > led_trigger_register_simple("cm3605", &cm3605->led); > - led_trigger_event(cm3605->led, LED_FULL); > + led_trigger_event(cm3605->led, 255); > > indio_dev->info = &cm3605_info; > indio_dev->name = "cm3605"; > @@ -255,7 +255,7 @@ static int cm3605_probe(struct platform_device *pdev) > return 0; > > out_remove_trigger: > - led_trigger_event(cm3605->led, LED_OFF); > + led_trigger_event(cm3605->led, 0); > led_trigger_unregister_simple(cm3605->led); > out_disable_aset: > gpiod_set_value_cansleep(cm3605->aset, 0); > @@ -269,7 +269,7 @@ static int cm3605_remove(struct platform_device *pdev) > struct iio_dev *indio_dev = platform_get_drvdata(pdev); > struct cm3605 *cm3605 = iio_priv(indio_dev); > > - led_trigger_event(cm3605->led, LED_OFF); > + led_trigger_event(cm3605->led, 0); > led_trigger_unregister_simple(cm3605->led); > gpiod_set_value_cansleep(cm3605->aset, 0); > iio_device_unregister(indio_dev); > @@ -283,7 +283,7 @@ static int __maybe_unused cm3605_pm_suspend(struct device *dev) > struct iio_dev *indio_dev = dev_get_drvdata(dev); > struct cm3605 *cm3605 = iio_priv(indio_dev); > > - led_trigger_event(cm3605->led, LED_OFF); > + led_trigger_event(cm3605->led, 0); > regulator_disable(cm3605->vdd); > > return 0; > @@ -298,7 +298,7 @@ static int __maybe_unused cm3605_pm_resume(struct device *dev) > ret = regulator_enable(cm3605->vdd); > if (ret) > dev_err(dev, "failed to enable regulator in resume path\n"); > - led_trigger_event(cm3605->led, LED_FULL); > + led_trigger_event(cm3605->led, 255); > > return 0; > }