Received: by 2002:a05:6a10:eb17:0:0:0:0 with SMTP id hx23csp697023pxb; Thu, 9 Sep 2021 09:55:55 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxWd7woNUe9Xbc8FrfingrzTn0gmAwddpVH3ke53V2qpcaVOA4Q/RD6OoBvI5RlnHpUx66R X-Received: by 2002:a17:906:8468:: with SMTP id hx8mr4281578ejc.492.1631206555488; Thu, 09 Sep 2021 09:55:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1631206555; cv=none; d=google.com; s=arc-20160816; b=RzcEMSR17KP9bb7MCS6z/CAu4L4ys0mOlIsX2l2zMg1aEmqS8170lm5PuwY1PaZ2F8 7xpGRKYFKxP2PL9eOWwACC81v/GgF2Dq2JP5wq05Wbg+X6NTmTOr2JLDIFA7wy0U0ofc l4BOEhK+uI1FMSumssLxTf0Pr7q6gxUGfev1kj+5NxZnx79/mbVnFViDP0LaCqkJLEis bh2g71wdZDLj+n39ux9Yh+q4YQZuzkzTCpAwXV4tLjavBkTY+vY6tmtJUBWE2pAmJJxE CjTpcaY3Tl9COFZFqz6x10/qHvn4R/To7Hqx+Im7GTrcxXA8ij0HtlcpZZqG7PuVOfFL s4wg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:organization:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=S1tqB81J5GN5BK7Cnncso6qLIUTK/mp7WAEKT8NsYK4=; b=h5iPxSKHnom2XKrEBJmVeIVv9rsNDhq+wLywfpKcHksRIkg9yy5eEZozkeePrXBGJF bqlX16GbQCKvoSxikMbKb+2tM4LGiFc3glxB4eAqLu93P4ERVYRvS6ETMhuQd46IAp6P HxfLXzAuPlR2T0IaCFA0AjgdNExuv/uKMxZZesRZKoQJCeS8skTmjvONg3rf22yUXeKB 2iNXz3BOJsT4SRXLmXqz+be00Tt4aumk75GjiauislTgRfcqVmQHsb+0U4Qtszst7CBt WvAoPjK6icTS6rm9f7xh/YIrZFzdGCjCsurrWUcMwQWIvSoIpC08iQP4ibP0aOtyw3gQ umUw== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id dm12si2512700ejc.744.2021.09.09.09.55.29; Thu, 09 Sep 2021 09:55:55 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238914AbhIIQzN (ORCPT + 99 others); Thu, 9 Sep 2021 12:55:13 -0400 Received: from mga09.intel.com ([134.134.136.24]:49056 "EHLO mga09.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231316AbhIIQzM (ORCPT ); Thu, 9 Sep 2021 12:55:12 -0400 X-IronPort-AV: E=McAfee;i="6200,9189,10102"; a="220876382" X-IronPort-AV: E=Sophos;i="5.85,280,1624345200"; d="scan'208";a="220876382" Received: from fmsmga005.fm.intel.com ([10.253.24.32]) by orsmga102.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 09 Sep 2021 09:54:03 -0700 X-IronPort-AV: E=Sophos;i="5.85,280,1624345200"; d="scan'208";a="696409561" Received: from smile.fi.intel.com (HELO smile) ([10.237.68.40]) by fmsmga005-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 09 Sep 2021 09:54:01 -0700 Received: from andy by smile with local (Exim 4.95-RC2) (envelope-from ) id 1mONJG-001i9O-Io; Thu, 09 Sep 2021 19:53:58 +0300 Date: Thu, 9 Sep 2021 19:53:58 +0300 From: Andy Shevchenko To: Denis Pauk Cc: Guenter Roeck , Jean Delvare , linux-hwmon@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 2/3] hwmon: (nct6775) Use superio function pointers (v2) Message-ID: References: <08262b12-4345-76a9-87be-66d630af3a59@roeck-us.net> <20210908213605.9929-1-pauk.denis@gmail.com> <20210908213605.9929-2-pauk.denis@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210908213605.9929-2-pauk.denis@gmail.com> Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Sep 09, 2021 at 12:36:03AM +0300, Denis Pauk wrote: > Use superio function pointers in nct6775_sio_data instead direct calls. > > v2: split changes to separate patches > Link: https://bugzilla.kernel.org/show_bug.cgi?id=204807 > Signed-off-by: Denis Pauk Similar comments as per patch 1. ... > + void (*outb)(struct nct6775_sio_data *sio_data, int reg, int val); > + int (*inb)(struct nct6775_sio_data *sio_data, int reg); This part should be split separately and actually be a part of patch 1. ... > -static inline void > +static void > superio_outb(struct nct6775_sio_data *sio_data, int reg, int val) I guess it's one line and it should be a part of patch 1. ... > -static inline int > +static int > superio_inb(struct nct6775_sio_data *sio_data, int reg) Ditto. -- With Best Regards, Andy Shevchenko