Received: by 2002:ab2:6309:0:b0:1fb:d597:ff75 with SMTP id s9csp414408lqt; Thu, 6 Jun 2024 07:22:05 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUFT6nAAZN8CTz2QY1KLqtI5JvPeXqQ66L2wlFz8TjrW+ofqOv8LIfjZSodIhccy93LkEz114pY3xgAwZoan5sKEJLXPIvXS2p7wgRbiA== X-Google-Smtp-Source: AGHT+IGOWqWcNisnZ4IasPic93yOGj+yXnNGZlowfmDdsMpmsn4Nm8+u0IxIGmcsP5WepnW7gAK4 X-Received: by 2002:a05:6358:cd0f:b0:19f:19dd:902a with SMTP id e5c5f4694b2df-19f19dd9319mr55311055d.8.1717683725567; Thu, 06 Jun 2024 07:22:05 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717683725; cv=pass; d=google.com; s=arc-20160816; b=t5Z49f7v4wwp524ces/zxRQ5ZdznEyl/MjlPn6fItHoyW9p63ehcqmdshNIcK82P1X zYbb8wwTYhW9ssvPmALHC3rUbPc/pywUauPunJLbAQf1X4tDmE0GduoT/k5zJQYUabZp lplRp3ljL3XVumIi00uS342Csf5SNvOffKgSca8aOyYsCcKjc9fHa5lEXhLAyJHzFP+I zBuarrGgogzkT7gsIUPUjn4P8sk3sVETJ5NllQ4tfN9eYgYCb/zkNr5HGng3eeUScPfv YYaXxrnOWYWtoURJfGPZRNKNyAZEGm+8sMKDE3kdtkLpD17b3mqRke7zVfYro+5p8Q42 PySQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=organization:in-reply-to:content-transfer-encoding :content-disposition:mime-version:list-unsubscribe:list-subscribe :list-id:precedence:references:message-id:subject:cc:to:from:date :dkim-signature; bh=yVO8EI8SSg43aaI54e7KEe57q0DYYH4ItRCsRaq/QXM=; fh=OceBalz4JfqqACqDCRlS1RgkpiEOltwtP7FWbq9WQPk=; b=EV84xPfr5l+KKs7t1fgy87GV4BOOizXtOLODY231m7l6qA58D33g2vY3DaZLcHHZ7I y12jU3OUqAkYioFXrRfI/49KarySI6d0aRXE86vQ9RkJpZQMVQ+o/jaug/NfQvWqhCEu vuC+0xjLhk0Om+QxqZAM1slCP8eFMoDVYqOsFb/889VCuW9U5wMw822fKdKPEv/MTwR0 S7NPb8mJbuFUjbGONq5FjZ0DBku9rKJDpnVhduEIMj5GLibvYvl4ltQtn6l3yE6EtFF8 wrXOhw2FncqW4g5U53pIVdsDPTX5qEofMctEpix1Lroz9e8UNV5OXHouiFWbAVYdOv8/ 0nfA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=fW0I7Rwh; arc=pass (i=1 dkim=pass dkdomain=intel.com dmarc=pass fromdomain=linux.intel.com); spf=pass (google.com: domain of linux-kernel+bounces-204426-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-204426-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id 6a1803df08f44-6b04f967c6dsi15551436d6.262.2024.06.06.07.22.05 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 06 Jun 2024 07:22:05 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-204426-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=fW0I7Rwh; arc=pass (i=1 dkim=pass dkdomain=intel.com dmarc=pass fromdomain=linux.intel.com); spf=pass (google.com: domain of linux-kernel+bounces-204426-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-204426-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com 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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 475B21C23260 for ; Thu, 6 Jun 2024 14:22:05 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id CCE4A1A1895; Thu, 6 Jun 2024 14:13:08 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="fW0I7Rwh" Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.11]) (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 9F4371A186B; Thu, 6 Jun 2024 14:13:06 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.175.65.11 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717683188; cv=none; b=l9AzjAFIAjCPXQURifPN1uCmaCG2qxFcVB6xgWm/et4ryhh2qt1uP8NFEPIL2XlugmwaFwAQPHpQ6RSsVtNS84kyrPwSg48XyejxdvzPd9IZXL7muEAuN/vgX6dR/bRTUIrA3oq/FTjdXRZXwQCsat9qLvEvQYVTXS8nlSTEal0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717683188; c=relaxed/simple; bh=IsdLDPmj0SmbAXCgn+8qfRe+A3ztyr1j6wceGEhWF0A=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=cxUIWfpaz1Fw7yoiPqy5MNkFllWtgJqde7VMeXsSPSmxhTEp8pe95vTUOOuvYqLQ/k5JqVttoQmwtYmFegPu7nFYCqEiOtE3VMDr+A4viQBTxDF3NB5Z10SNqCsZTJ2uqZFbEOvxbXecPzp0l9N+3BYPVuqx8qMuT9TfKaRcnPo= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com; spf=none smtp.mailfrom=linux.intel.com; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b=fW0I7Rwh; arc=none smtp.client-ip=198.175.65.11 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=linux.intel.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1717683187; x=1749219187; h=date:from:to:cc:subject:message-id:references: mime-version:content-transfer-encoding:in-reply-to; bh=IsdLDPmj0SmbAXCgn+8qfRe+A3ztyr1j6wceGEhWF0A=; b=fW0I7Rwh/brFkzpgDroUfYlzvwI8hDBjz+S8Z722ZvLihccNGyCoiQD1 lXiAtdbHQUNOmp9+oZUAV5BQOpZCdoQI4nm4FFxagHuOgCdYyyo+DKOw7 YuNSxqal9oMIgGLmnSOypOVhPRoWuiU1jAERHJmlgfo7nHrESSJE1ZEaa 1K80tSuMHuQCX8XFRUUufUcW0roVhwtcQjNgcA2GokJzoy1Qzj/5D+aNT f6dgQ4GroxumTgQI7GJV8ev4nRJaqJuEPCanh9B/niaClUJ0NXXRtfEVg ASwo6CvnmAmd1nHRavYDphnzzBqDNUgO134pwCcxEgxZDBSsYv74+pNNI g==; X-CSE-ConnectionGUID: B5CUVPBoQpKgD812XWCMuw== X-CSE-MsgGUID: jsh/SuHASKuirfT5nbbO0Q== X-IronPort-AV: E=McAfee;i="6600,9927,11095"; a="24924368" X-IronPort-AV: E=Sophos;i="6.08,219,1712646000"; d="scan'208";a="24924368" Received: from fmviesa007.fm.intel.com ([10.60.135.147]) by orvoesa103.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 06 Jun 2024 07:13:06 -0700 X-CSE-ConnectionGUID: 8ND2elZKS2e+hKpRoRovhw== X-CSE-MsgGUID: Ja7dKVhLT8ChYzA52oYi3Q== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.08,219,1712646000"; d="scan'208";a="37837567" Received: from smile.fi.intel.com ([10.237.72.54]) by fmviesa007.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 06 Jun 2024 07:13:02 -0700 Received: from andy by smile.fi.intel.com with local (Exim 4.97) (envelope-from ) id 1sFDrQ-0000000ECTP-019r; Thu, 06 Jun 2024 17:13:00 +0300 Date: Thu, 6 Jun 2024 17:12:59 +0300 From: Andy Shevchenko To: Nuno =?iso-8859-1?Q?S=E1?= Cc: Nuno Sa , Petr Mladek , Jonathan Cameron , Lars-Peter Clausen , Olivier Moysan , Jyoti Bhayana , Chris Down , John Ogness , Greg Kroah-Hartman , Andi Shyti , linux-kernel@vger.kernel.org, linux-iio@vger.kernel.org Subject: Re: [PATCH v3 2/4] iio: temperature: ltc2983: convert to dev_err_probe() Message-ID: References: <20240606-dev-add_dev_errp_probe-v3-0-51bb229edd79@analog.com> <20240606-dev-add_dev_errp_probe-v3-2-51bb229edd79@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=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo On Thu, Jun 06, 2024 at 02:27:03PM +0200, Nuno S? wrote: > On Thu, 2024-06-06 at 13:17 +0300, Andy Shevchenko wrote: > > On Thu, Jun 06, 2024 at 09:22:38AM +0200, Nuno Sa wrote: ... > > > + return dev_err_ptr_probe(&st->spi->dev, -EINVAL, > > > > You can make all these lines shorter by using > > > > struct device *dev = &st->spi->dev; // or analogue > > > > at the top of the function. > > > > Well, I had that in v2 (making the whole driver coherent with the local struct > device helper but you kind of "complained" for a precursor patch (on a > devm_kzalloc() call). So basically I deferred that change for a follow up patch. Hmm... I don't remember the story behind this, but probably it's good to have this done one (precursor) or the other way (follow up). Just check how many changes will be done, whichever diff is shorter, choose that one. -- With Best Regards, Andy Shevchenko