Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp985952pxb; Thu, 23 Sep 2021 15:14:26 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyvKLj4fcYhns1AA5AKP4x98CPS8RXBMwspA9Nun6fsilKGdErFJaXnqFlDqGWPP3u8QnO/ X-Received: by 2002:a50:8163:: with SMTP id 90mr1517458edc.198.1632435266615; Thu, 23 Sep 2021 15:14:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1632435266; cv=none; d=google.com; s=arc-20160816; b=gMX2d47SabCfnma75ty6R+UWVB3/AkpAkBBhjVzQ/W+9jpyYUbWWhipHSbOXQHSEVe qRFpSgjF7kwx2KvEFN/F6m2a6jMIuQRjsKp5lMeJi2ukWEfqxiWCPPEnP02gX1NjavJK WzUjkaKL/DBW0V3BJ8wsTNKygsSAtVQbal+Hi8lSaxMoMvrq0LWH7do+68bFeuUqG9S+ 8Ha9Q6iKT/Z8HMPKqOvOEh4aDYxk/9nNSRxPVsOBTfbnc9GUmAIcw7y+EJfXLupxUJBN 5IqEsHyLDc3PhOO1ngjH89YdR/wOiSawoCLZZeMbbmXxN+LO4+Y95EQrtWoXhqjkADMW eS2w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=uzKfTb+iGUsH3mWhIrSbIbsPD44CEKOd50V1lDVVLdA=; b=z466I6wsXEJtMZ1TT2/Gjad3s9dUexRWvQCHEBpxyFmelsyZQYKG4RTKl59o6ekJPe FiT37c/LKvJP8zqFQPVdVZLxw9MfyYJomWvrFW9uKes2xm766XmXtGOj74omUv77hMkr vWCaAUSsss1gEd58MohkU1HVQi3PUVgKlkpkaXZEZOttyoL/2AMLQI05D1R3h6oRd8dt u0YwADTse8QnbVHfwM9mYG9dF42UJyFyjci2rf6P4wEeAaGEeAdeCNEgHW0a4ZJ7f3FZ El/wV9NJZX4BjC/neZCueYjpCxtb3t+e23hKyHWYkc5WWr26KOMIrkUDi6rK2xxBZ49W Tvng== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b="LCh/98K/"; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id dn20si6527737edb.294.2021.09.23.15.14.01; Thu, 23 Sep 2021 15:14:26 -0700 (PDT) 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=@gmail.com header.s=20210112 header.b="LCh/98K/"; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240762AbhIWWOF (ORCPT + 99 others); Thu, 23 Sep 2021 18:14:05 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42720 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232145AbhIWWOF (ORCPT ); Thu, 23 Sep 2021 18:14:05 -0400 Received: from mail-lf1-x135.google.com (mail-lf1-x135.google.com [IPv6:2a00:1450:4864:20::135]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D7EFFC061574; Thu, 23 Sep 2021 15:12:32 -0700 (PDT) Received: by mail-lf1-x135.google.com with SMTP id x27so32107158lfu.5; Thu, 23 Sep 2021 15:12:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=uzKfTb+iGUsH3mWhIrSbIbsPD44CEKOd50V1lDVVLdA=; b=LCh/98K/jr97CoCn3AQApNer4bPQNBbqmOd2gYXSSbZE2Y6DWmQgIJM6wwPkH+Bn2h UhvSxV1cbC3PsMIcXjlhDMwLTAsDFtcsnaznuPwrF5jgxdNhIrOcd+egsjJkWJmJT+iY 9zfwyZGpwQxk7yQny3BvSu7xBXHSOaynpyLL6YO/h+mKK7CtFHuT1XpdgmSj1TqOFkvd XB2QKLy9snWd4PqESNJDOvbmhyMEQzh2YouhF+peJYyShpCCdWT15x0+BvLgIUkFFNZ5 miW4fI0ZkNqz5pUKo9c3wY4TPpJ8uzwJ5kgfSzwsZS3ft27Vv0hgsXhAHDyK/foCkM4I zYGQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=uzKfTb+iGUsH3mWhIrSbIbsPD44CEKOd50V1lDVVLdA=; b=G9uRaF64vuIOR6h42jJxCviFbPxUrkQ4ljkueqzLCoBLgqfYHyzqfT5pgw6gT+wJIm USrgbct9d52Ba1ELPGt7R22f96N3UlAjP1VPzj++HFAH5JLQGMdrrC04B/Wyaomm8JFB Adn0ENLZ35AW1Sw4ejsVbta18dsEnYTbe6SS75yAfWuJ6ZJ22TQURrAmZKyquAyA4s/K VBLVqtiurXQxlqzaxrbvfZyK4wXK79c8MNVQMIkTeuZHVi+doXR1bKtn+KL64aTN59sY zSHxgQEl5OuWF9lRUSxXaofxU6TE7Q0Zkr/krLzuMiGeCihf1Xr4exWrd9zDGZCR60PP W1IQ== X-Gm-Message-State: AOAM5327NGM31a3DIO8u2Z2dqV/LwXAmeWpHzrQ41vIhsqM5y5UhHlBP DGiRbxpQEfreQPwNzalYw2ujGLXo/vlCBKf/EATv8aHU7NY= X-Received: by 2002:ac2:514e:: with SMTP id q14mr6492757lfd.154.1632435151284; Thu, 23 Sep 2021 15:12:31 -0700 (PDT) MIME-Version: 1.0 References: <20210921052821.91-1-caihuoqing@baidu.com> <20210921052821.91-2-caihuoqing@baidu.com> In-Reply-To: <20210921052821.91-2-caihuoqing@baidu.com> From: Fabio Estevam Date: Thu, 23 Sep 2021 19:12:20 -0300 Message-ID: Subject: Re: [PATCH v5 1/3] iio: imx8qxp-adc: Add driver support for NXP IMX8QXP ADC To: Cai Huoqing Cc: Jonathan Cameron , Lars-Peter Clausen , Rob Herring , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , NXP Linux Team , linux-iio@vger.kernel.org, "open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS" , "moderated list:ARM/FREESCALE IMX / MXC ARM ARCHITECTURE" , linux-kernel Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Cai, On Tue, Sep 21, 2021 at 2:29 AM Cai Huoqing wrote: > +error_iio_device_register: > + clk_disable_unprepare(adc->ipg_clk); > +error_adc_ipg_clk_enable: > + clk_disable_unprepare(adc->clk); > +error_adc_clk_enable: > + regulator_disable(adc->vref); Please rename these labels to indicate the action that will be performed. Something like this: error_ipg_clk_disable: clk_disable_unprepare(adc->ipg_clk); error_adc_clk_disable: clk_disable_unprepare(adc->clk); error_regulator_disable: regulator_disable(adc->vref);