Received: by 2002:ab2:3350:0:b0:1f4:6588:b3a7 with SMTP id o16csp536927lqe; Sat, 6 Apr 2024 11:39:09 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCW82ujFY66AF1nQDKsSA6WwwWprXoh2+brStFzLijgFOkvWd9zqoP2gghnbrY/zkjpzPnt42Y1QJbhbThQkFCvPMb4hEsZmWvCOEJcUmQ== X-Google-Smtp-Source: AGHT+IFAYgLuv3PeLDq4snTrqHOZb3VggyKZ8RyAxSk9cp42SJi74RioMBlzvNqb5vNl7c2wLYBQ X-Received: by 2002:a17:902:ec90:b0:1e2:a61e:47fa with SMTP id x16-20020a170902ec9000b001e2a61e47famr6221694plg.15.1712428749414; Sat, 06 Apr 2024 11:39:09 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712428749; cv=pass; d=google.com; s=arc-20160816; b=1B5ohHdO2domVMnFjZ0VlUZWt8wZYc/gJWbd4PB6HHGOBE46AklV69rsFuLeTBn/Bl 810mYUo2vZRtacSQ7YTmRKZ2Pq+PVCBt1gb5U081VRN9Rs5xTa6jq1Q0rwfofPtKbqv3 vEVYj0YBInbcWkQNTGP0pTbxxZ150laOgRZAHBI8ZMI7KMG8DBY1nvvb6rFzNQxSwtLK WCJ5B6t33qR3Q/zSwZvPj6whpvxo2e2VbDs88ERf8UuhzxtxaiNoRavHc6sa57cS0+Pr fxJd5+rvHNjk9nHzaxg4bcswJt1Hm838xjqjDEiEM6H3mmXSTKdqkbv4OSkgu/aB8aiN GnXA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=cw+2AY+yq++Q16jmEZq8NrtFbBuKfHU9mJXSF4s6qjg=; fh=CJSZc/Z4bheqYsrQ3Qg46mt7QIZGRJAv+j+podd8YgU=; b=NemoE2qR0rASJAnQaNF0ry7suD4wEge7qu13+d+nUh5CTBRrfq9xOCXyX3sUe2OJw6 gXYGVCqZMLzxjxa8RlOzDIHBQwCOjfqGwx/uAfkwqVZGnGBffg4X5Pk8PInR4DtKrfX7 PPQFC7Rblc5dwqP51VsbWIx7CCiqB+EA2zyX+ldrtvWdbOqGLlhg4ovnfU0DreuZiQOa b32DvAvtREKugfam3ytV9jrNzRMF8pZ87wMdE1JILJRf8gYUJUOWonf1AiGJYZKlVK3/ t3F797SFtNV40styZmtiqg/QuNl3zpSYQjAXuBPP6Y/mzvh9Hf24WGwrxSCh3x6PloWN zUtg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=WDLFx+PZ; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-134058-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-134058-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id w15-20020a1709026f0f00b001e087fe28c8si3375509plk.484.2024.04.06.11.39.08 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 06 Apr 2024 11:39:09 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-134058-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=WDLFx+PZ; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-134058-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-134058-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id 94307B218C7 for ; Sat, 6 Apr 2024 18:39:05 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 950574C610; Sat, 6 Apr 2024 18:38:58 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="WDLFx+PZ" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id B492C481D8; Sat, 6 Apr 2024 18:38:57 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712428737; cv=none; b=FcYXGa+HvPJc1WBQ7yafodpohGFUyRCyNLK0WUmLCDwX0IeFYwZPKiW5496IWIIxV4RtpDkjb7N9wGhUPTQco9g5XpBC4JWae1+rJUNEPBTD41flo7U79dY/4BjlrpZK0woOQfmlION/m2z8B9KQjqkLvThEQ7PECgvXGPKTJ9U= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712428737; c=relaxed/simple; bh=TuoUC/0m7+TeGvfQNlRpsuNx3/gbAWSHJo6wQrfPNbU=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=Cr7oQRAu3E3eV0pM2SYktZ0R+5hCipYiEBdM5xYG4aY7GDBMFoChCBV8o70BeSxkRMFTSUqo29JOHpy+xPO8BsqpR22FcFnttM3jroI/EqpUrfKWIprg0yOz6c3gBgT8iBFqT0D87wCWo/hcCeWlY4r8dWHdoCBvsI3qIYo2IIM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=WDLFx+PZ; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id D5A0FC433C7; Sat, 6 Apr 2024 18:38:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1712428737; bh=TuoUC/0m7+TeGvfQNlRpsuNx3/gbAWSHJo6wQrfPNbU=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=WDLFx+PZ4duBMZiYqt7ss1sn4Y99Mw61ZomYHsSe4BaW4nGEdd8hwPrWkZ+eugfu4 5Wy2qILAFzJ7Yw7IBIbDL0rbeXsdxvE/fasGoxkNn2akY+HSmZDWnljxjJAcDnoWUt ClS5BovFN5BVz5Ba10iDLJT6g7JgqabiP+QA8DF2KThBRU7bT5le2XVZLpgxvwstmV V25e2is0xJjbPwya4m0d71vIAhuXGSNzkztt7DL/4OW/saZvdvDAVe0bNpqHQeiv4+ PcnGQ5r3vhZwmD3NFzMc/BkpKA5XTIXjiM1f/HLb7oJKgQqBSUO+e0x8U0z480ovdO vufyoq8GLwIrw== Date: Sat, 6 Apr 2024 20:38:50 +0200 From: Andi Shyti To: Andy Shevchenko Cc: Nuno Sa , Petr Mladek , Jonathan Cameron , Lars-Peter Clausen , Olivier Moysan , Jyoti Bhayana , Chris Down , John Ogness , Greg Kroah-Hartman , linux-kernel@vger.kernel.org, linux-iio@vger.kernel.org Subject: Re: [PATCH 2/4] iio: temperature: ltc2983: convert to dev_err_probe() Message-ID: References: <20240404-dev-add_dev_errp_probe-v1-0-d18e3eb7ec3f@analog.com> <20240404-dev-add_dev_errp_probe-v1-2-d18e3eb7ec3f@analog.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Hi Andy, On Thu, Apr 04, 2024 at 03:18:05PM +0300, Andy Shevchenko wrote: > On Thu, Apr 04, 2024 at 01:06:24PM +0200, Nuno Sa wrote: > > Use dev_err_probe() in the probe() path. While at it, made some simple > > improvements: > > * Declare a struct device *dev helper. This also makes the style more > > consistent (some places the helper was used and not in other places); > > * Explicitly included the err.h and errno.h headers; > > * Removed an useless else if(); > > * Removed some unnecessary line breaks. > > ... > > > if (!(thermo->sensor_config & LTC2983_THERMOCOUPLE_DIFF_MASK) && > > - sensor->chan < LTC2983_DIFFERENTIAL_CHAN_MIN) { > > It's better if you leave {} when the body goes after a single line. > This applies to your entire series. I think checkpatch complains if you leave the {...} and, honestly, I'm not a big fan of the {...}. Unless there is a last minute rule I missed. If checkpatch doesn't complain, I'm OK with both ways, though. Andi