Received: by 2002:a05:7412:b995:b0:f9:9502:5bb8 with SMTP id it21csp3479809rdb; Wed, 27 Dec 2023 08:37:57 -0800 (PST) X-Google-Smtp-Source: AGHT+IESDgeVsUGZPZTkgnGAEycAvgUa8/qDxBTvm8InkWj/tlAW3Z1UyTEsG7OYBtjFi4/WX1ka X-Received: by 2002:a05:6a00:1c95:b0:6d9:ac87:9db7 with SMTP id y21-20020a056a001c9500b006d9ac879db7mr6746678pfw.4.1703695077436; Wed, 27 Dec 2023 08:37:57 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1703695077; cv=none; d=google.com; s=arc-20160816; b=W02n2hx00xMa7hHWRquWTBoxhp7C805gUc95vx7+Q5UhrddPL0artp5ibhAUhg31Bi 7+oF/h8tWxyFYzuaVlEQMLfxQKzJQqgJnBB6k6nJEhShoJFxZuVQnTRKh/Noz1M/W8OK P2Aj6YZLJPd18h/wSdzOo71+P+SiNRZNPsDSwI+Pb3Y7eDqKQpb+gyD+mIg9mL9SIB8o bPAKiitlWSLviA2HnJ/BbKqMIMB4DD2tKG6vCTfJMiWjYJww7Xc+EpS5AoGf7bxNP7k5 BHCKSAL1UH0+Wy9PtN6CrCaHQdaje9MHy/xnxPwZSFSwIKBTp6IOB1Qld8m87+C4JngS QK0g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=organization: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=BY7oq0jtRjK5LtCV6ilyz0s0C1jasC8I81Cf23pk9Rg=; fh=K2lZ5JEBYGjQE7jmgsbLY0A4V8oVVxChzsHYDsJ6xwk=; b=Pm4cdSoWF/stwsWbYoEHw/aZhg5PEmarLyS9fjF5IXczRPWN7BBSaiTGBVC0snN1VK XLYGrP9xMtTtZ5je3lYXHVi2JQxEpZ4BCx3B1hQFmeXnOm0Z/tJJYu9HO75P2JGKS4wV 7OFtlZksjQ44Ob2izu9IRLYpUZA8QsXzPsUSrDF4+BE+nb8mWDQfMxX00WejmOyeEWSy ANsrTgu782QPctFGeMiMBkXjk9zceZgwaF9GWrpqsW7DTmLQLwcHWWMBTvCLHAHprwKJ oOXaU6nUnJW5VBe0Z0+S8+Zp8/llFAYfa/9OoVI0cpJte9HPNEu8DBRkVQcsNOQSczIL Z1Zw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=RGAUFLqX; spf=pass (google.com: domain of linux-kernel+bounces-12141-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-12141-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id t6-20020a6564c6000000b005cd78685329si9058695pgv.778.2023.12.27.08.37.57 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 27 Dec 2023 08:37:57 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-12141-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=RGAUFLqX; spf=pass (google.com: domain of linux-kernel+bounces-12141-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-12141-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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 95859281889 for ; Wed, 27 Dec 2023 16:37:56 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 158372C868; Wed, 27 Dec 2023 16:37:51 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="RGAUFLqX" X-Original-To: linux-kernel@vger.kernel.org Received: from mgamail.intel.com (mgamail.intel.com [134.134.136.126]) (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 020691E50B; Wed, 27 Dec 2023 16:37:48 +0000 (UTC) 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=1703695068; x=1735231068; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=C0xIy59+brcN4rsi5+PyliR2R7CN2ScjanmBgdR+p7E=; b=RGAUFLqXug9061h8ap9wIpP/oJkQ/GbmlheRuazvXfWc5bkHisjiXpN3 mhgELp4MgdTND4i9Q5n2vWWoJTn/i1MnY393lro+xaidaAPrewPFPk128 sd95kbwxkzEz42jeC06s8y/ehjWLjTTc69dw+pvmsdyakIPJgyHYzhetv sG/4axC/fGpBHrggVCXvW7Uq28C6r4hO9rmUUYcWj+qWBnM0e57AvDQeX OthVnm9F2UblSSiwRNJwStLIH+j5DdocgJL2R+BqWIIPBDCske22yjpds CeDea9W1/PY07q4ARrmPslPQ05ESOybdbZ5bd/SKSUeXnpoJZe0dhrf4Q A==; X-IronPort-AV: E=McAfee;i="6600,9927,10936"; a="381434300" X-IronPort-AV: E=Sophos;i="6.04,309,1695711600"; d="scan'208";a="381434300" Received: from orsmga001.jf.intel.com ([10.7.209.18]) by orsmga106.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 27 Dec 2023 08:37:48 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10936"; a="812568448" X-IronPort-AV: E=Sophos;i="6.04,309,1695711600"; d="scan'208";a="812568448" Received: from smile.fi.intel.com ([10.237.72.54]) by orsmga001.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 27 Dec 2023 08:37:46 -0800 Received: from andy by smile.fi.intel.com with local (Exim 4.97) (envelope-from ) id 1rIWud-00000009SsX-0lNv; Wed, 27 Dec 2023 18:37:43 +0200 Date: Wed, 27 Dec 2023 18:37:42 +0200 From: Andy Shevchenko To: Petre Rodan Cc: Jonathan Cameron , linux-iio@vger.kernel.org, linux-kernel@vger.kernel.org, Andreas Klinger , Lars-Peter Clausen , Angel Iglesias , Matti Vaittinen Subject: Re: [PATCH v2 08/10] iio: pressure: mprls0025pa.c refactor Message-ID: References: <20231224143500.10940-1-petre.rodan@subdimension.ro> <20231224143500.10940-9-petre.rodan@subdimension.ro> <20231226164922.6d7132c1@jic23-huawei> 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: Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo On Wed, Dec 27, 2023 at 04:33:37PM +0200, Petre Rodan wrote: > On Tue, Dec 26, 2023 at 04:49:22PM +0000, Jonathan Cameron wrote: ,,, > > > ret = devm_request_irq(dev, data->irq, mpr_eoc_handler, > > > - IRQF_TRIGGER_RISING, client->name, data); > > > + IRQF_TRIGGER_RISING, dev_name(dev), data); > > > > Even though you'll change it again here, would have been nice to have > > the alignment fixed in the earlier patch then the code update here. > > I tried this, but due to the fact that the line has to be right-aligned to > column 80 we will still see a whitespace difference due to the length diff of > the name-related argument. You can split in the previous patch accordingly, so data comes to a new line. ... > > > +#include > > > > Why include this? Can't see an IIO specific stuff in here. > > tried to remove it and > > CC [M] mprls0025pa_i2c.o > mprls0025pa.h:89:63: error: 'IIO_DMA_MINALIGN' undeclared here (not in a function); did you mean 'ARCH_DMA_MINALIGN'? > 89 | u8 buffer[MPR_MEASUREMENT_RD_SIZE] __aligned(IIO_DMA_MINALIGN); > I guess it makes more sense to move it to the .h file, where buffer[] is defined. Yes, C-code and especially headers should follow IWYI principle. The real user of that definition is _the header_ file, and not C in this case. -- With Best Regards, Andy Shevchenko