Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp2123060pxb; Fri, 17 Sep 2021 02:45:30 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzX6FpX0kX+R58tsRQBZVZ2VAiEzRUKEfQMJ3qV8Zg08xGXUW4PmCRe1BSpCrJryPXJk7P0 X-Received: by 2002:a50:cd87:: with SMTP id p7mr11670872edi.294.1631871930066; Fri, 17 Sep 2021 02:45:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1631871930; cv=none; d=google.com; s=arc-20160816; b=PP3fQANKhEcxDxWtnarxnHD/4O1YAk439uOm2/RS8695Zu1a9Px25TnR/ozQegIP7F 1rntVx1jrI3rHEgCAtNIvOJDsGU7lmfClwb/Ef51/ZSro0d7AfAVdb7dah5TfbBhmmsX qToBDVJ4eQTrjqZQFw4L8/RKYH22emQ0JMkIl+t3lnf11vckL44gL2fSWF+rcBI78HVD s3FV5hkHXeeEonO7yG16C71Ws16eDVT+TI7Pf/bXOIPqpqv2l3SMQUJQHENR7EljJ7Xa gDuVobJQAbFOKiS2XpI6FI1whtY0Fck6a5WEMTNRw1E7n1ePp/dZZrZdpy+U41Dnwhvx 3l5Q== 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=BrYe7lt2sflYjFwHUoeOnD3YR4njHBLZd1RXl5PI8E4=; b=cnCMViBuGeA5mNOpkDO40sAwhW1EY6havHMzMFW3uH+aX0g3Q9mZWpLYUzw06SKgi8 ify7HBzRMS6tkAeH1Dbh507swOyq54iVIVS+jLCh7vmSEBC6Do8FmUZmizpxxsFnl5je +AJBrc1MWvvQ9eAzk43SKQ67tgHFKH6SxFkfDLfT3L5bYpU/9k16Mc3PdlRxhVt/Wkbw vmJd9/LvVYsCOHZCmdma7Qppv7/+mjclt8LNxNBwvm4vl7vxiboCoxMBdUj3qO/xi5ne 9mrRpKVC7CDZqQ3NkQFXGkmYsb6vFpdKIG4VY8emVsmJ6/GSUXbI3bUTchaZRcKcSeKF d4jA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=mAiiP8Q2; 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=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id gx27si6255288ejc.240.2021.09.17.02.45.05; Fri, 17 Sep 2021 02:45:30 -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=@linaro.org header.s=google header.b=mAiiP8Q2; 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=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240936AbhIPWcG (ORCPT + 99 others); Thu, 16 Sep 2021 18:32:06 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45542 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240985AbhIPWcG (ORCPT ); Thu, 16 Sep 2021 18:32:06 -0400 Received: from mail-lf1-x133.google.com (mail-lf1-x133.google.com [IPv6:2a00:1450:4864:20::133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F3272C061756 for ; Thu, 16 Sep 2021 15:30:44 -0700 (PDT) Received: by mail-lf1-x133.google.com with SMTP id g1so24619349lfj.12 for ; Thu, 16 Sep 2021 15:30:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=BrYe7lt2sflYjFwHUoeOnD3YR4njHBLZd1RXl5PI8E4=; b=mAiiP8Q2SmeVhvh6uHUOEIvZpL1iCoMmJn9rO5+lVN/XZDwHvgB3s9rO9JPMH0KUES YhZZjS8S/ilIbI2CEpAd1NFM1WGLizKSD0Y3vKdlXdtqSgIRp17DHrYwAhCQGHARAgod xbC6TnH65FMdwvQA/4cADF86FrR99WHUECrpj7/haGDD4rU0mgJjetsdlqqazdXLCkoB RuvAlxJRFomaMfFzu2tunCEFtPA83KAOmiT5lD7XgaTWGaIM1l3yp34KBmidb6x8kU16 LFj1y74SpEUuGwuxpHFFA2MdctZplNPAvep3eN1lSZ5hdiLAf4hWQ3fI9b3s/fSQcG/j tySA== 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=BrYe7lt2sflYjFwHUoeOnD3YR4njHBLZd1RXl5PI8E4=; b=AAdEoAkXDjk2Adgsbn1Y8gDhsoj2Fg9Yj+wfeJ+WMenL8FH/2mcdjqWp1EwoDTJo1I 32lvV6B/7pAd9DibkcQK+vjPu84Zlk1KHRBVNgNi2S5MbvtKMgju+UY/yFGbLFwLuMUQ Ep4xoiBlpJCoj56ZtjwRF/FKm5NeCx/h/unfjPchxus+z4ykYH6N73fB3xgnMAXpDp74 RaR2zGxp8DfgMuODAApXNm9KPMzgnXsC8o8HvzbbaACbx8EYsGcpAeJopPkMatnNt/E4 Q53LR9m0pxccMBpg5XVHXBRsWxbF6GYJAEuwnc8870Qcj4hrUczTi4e1CR6walpwAas+ AcAg== X-Gm-Message-State: AOAM530UcAkvtKxVkQCLnUDZ6fJvF/gd5oQ0l5rzafhr7rlP45iHP9lX bRMPPH55yMQeVysNPie5rLkiOlblE4wq+Zphsnf0bOGSi8ox8Q== X-Received: by 2002:a2e:4c19:: with SMTP id z25mr553008lja.145.1631831443281; Thu, 16 Sep 2021 15:30:43 -0700 (PDT) MIME-Version: 1.0 References: <20210916153156.14098-1-caihuoqing@baidu.com> In-Reply-To: <20210916153156.14098-1-caihuoqing@baidu.com> From: Linus Walleij Date: Fri, 17 Sep 2021 00:30:32 +0200 Message-ID: Subject: Re: [PATCH] Input: cyttsp - Make use of the helper function dev_err_probe() To: Cai Huoqing Cc: Dmitry Torokhov , Linux Input , linux-kernel Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Cai, On Thu, Sep 16, 2021 at 5:32 PM Cai Huoqing wrote: > if (IS_ERR(ts->reset_gpio)) { > error = PTR_ERR(ts->reset_gpio); > - dev_err(dev, "Failed to request reset gpio, error %d\n", error); > + dev_err_probe(dev, error, "Failed to request reset gpio\n"); > return ERR_PTR(error); In this case you're supposed to do return dev_err_probe(dev, error, "Failed to request reset gpio\n"); Yours, Linus Walleij