From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id D5AF7CA5511 for ; Wed, 13 Sep 2023 08:57:02 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:Content-Type: Content-Transfer-Encoding:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:In-Reply-To:From:References:To:Subject:MIME-Version: Date:Message-ID:Reply-To:Cc:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=fCHD1jN/3FqUGtl5UnmNNVm0HUEanWlYypFStonzSQo=; b=Q52uy5J8fVFCCWg12QzGtJh0Z9 qQOXCs82mDuacGWaDdqRH66O5I5SLLCCofwT2ruFcs2OWjwf0S4GIg6QVTtIzVFM2l7vDzWQWudMn uZ6tkIF3Rj5v2CatvnYYUTkrcYJHJirL7butqLU3rNMSQ/yY43GI1eF0jpmXXYNUhcMTmsX0oVmCP EZDYz5FuVbQ/QrjYOJbb83MED6D6B/QTNJFGV7JNuoC0Tcx+kky5as1kGopGYZXPOjO4OST2Wjs6R 5/tJCUG9nEibiMfr6HI44/PupaSoJTjPf15aolr7QlD07+ijHECqNZoB0ooRiFsF12HyUGkSI3KIX rc16VoYQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1qgLfo-005D7T-2B; Wed, 13 Sep 2023 08:56:36 +0000 Received: from madras.collabora.co.uk ([2a00:1098:0:82:1000:25:2eeb:e5ab]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1qgLfl-005D5j-1I; Wed, 13 Sep 2023 08:56:34 +0000 Received: from [192.168.1.100] (2-237-20-237.ip236.fastwebnet.it [2.237.20.237]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) (Authenticated sender: kholk11) by madras.collabora.co.uk (Postfix) with ESMTPSA id B7764660732C; Wed, 13 Sep 2023 09:56:29 +0100 (BST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1694595390; bh=nqOTtfwX7rRj9GC8sr2U/6FJNTLSLN8f0d2I07koGF8=; h=Date:Subject:To:References:From:In-Reply-To:From; b=n6z/R42AhHSVBEMMVnpq0HkyEmRYjwYH1r++RCb+Z6eM6IvfahC/Mhwn+Wp0X+rSZ l82NoT1THmC3L8eZVSjEEYXNolZN5xmI+Co157my/fQ1/dpJ8nbSYWLMO9wLeTr7KU KtOrUxL7VCc8F5W3V7F6z7AUFTzrYxn1r3an4klqmVy0MG2R6Vlcc7gdzFZKujIYnL FP4oaww6t4o3gffwZ8T8WVFKSwda92f7ftblWG07MpUT+Z8n8XK+YxBFTHTloPBHV5 d/7MrFgx48pX2DXkdco+a7fgxfb6ElHkNOWyPIUlNSUUn8cNjJh3rczIs4cPdSB5YY td++vPQOwA4nA== Message-ID: <09603bb9-59df-a6a4-fda0-c47fa3941659@collabora.com> Date: Wed, 13 Sep 2023 10:56:28 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.15.0 Subject: Re: [PATCH -next 2/2] iio: adc: mt6577_auxadc: Simplify with device managed function Content-Language: en-US To: Jinjie Ruan , jic23@kernel.org, lars@metafoo.de, matthias.bgg@gmail.com, linux-iio@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org References: <20230826035402.3512033-1-ruanjinjie@huawei.com> <20230826035402.3512033-3-ruanjinjie@huawei.com> From: AngeloGioacchino Del Regno In-Reply-To: <20230826035402.3512033-3-ruanjinjie@huawei.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230913_015633_594170_C2BF8C0E X-CRM114-Status: GOOD ( 10.17 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="us-ascii"; Format="flowed" Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Il 26/08/23 05:54, Jinjie Ruan ha scritto: > Add a device managed hook, via devm_add_action_or_reset() and > mt6577_power_off(), to power off on device detach. > > Replace iio_device_register() by devm_iio_device_register() and remove > the mt6577_auxadc_remove() function used to unregister the device and > power off the device. > > Remove platform_set_drvdata() from the probe function, since > platform_get_drvdata() is not used anymore. > > Remove mt6577_auxadc_mod_reg() call from the probe function error path. > > Signed-off-by: Jinjie Ruan > Suggested-by: Jonathan Cameron Reviewed-by: AngeloGioacchino Del Regno _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel