Received: by 10.223.164.202 with SMTP id h10csp999708wrb; Thu, 9 Nov 2017 19:06:33 -0800 (PST) X-Google-Smtp-Source: ABhQp+RdAFTtFsXx35hKpTeXlZae/Ci/DvoUVNpMxkqkJtBy5V3LeBs+KxEsbkWfB7PePuWZ4q6X X-Received: by 10.84.131.36 with SMTP id 33mr2578053pld.348.1510283192948; Thu, 09 Nov 2017 19:06:32 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1510283192; cv=none; d=google.com; s=arc-20160816; b=gLosRuSBckd+QRd0v+cK2qRn0ni+YcM/rTPJMkOtFQgi61BsP689FzM0IrZk93N9em UXuCz/h3Y6Hgoohpv+MbVEeZVeEi7y4gFyCmlYgmHcpxfmB+NBlRUtVKp5m29bbzZuim DmeOfK5+hgcQ3Z0xty8O033zSlBYn3SPiZI0tJH+rJeBjIaBd1gcstAjzQUqAkrT5MSB NfbVMURWvrmTKTFKKvWdFPoggLQO6Dqs1r7ImKOcre1Q7eLjID+V7OAs9c8Gcoj8la67 nSwRHwVxdq9QJEJUEa2utlqsndXIYgX8RhPv8yD/74rxr7mJXueyANXPQZUclogIVSWK uuDg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :references:in-reply-to:mime-version:dkim-signature :arc-authentication-results; bh=wtqM81zobhWkwxL/T9sT1GwdVkTWjtsQOLIIp0DkNd0=; b=oo6GwpWQJPOs3QOJg68s3RaS3MR3vJfFvq/2iGVDzffr8r19oiB5yjHJouPf2zaXA6 2kLlQUN8CZGlxRWKtPtWBIvE6VSxdjiI/vgx5/y6wrQ+lZCpvg8J/qbwNzhTtiAu1oT4 S+REpq5hZYMA5vuO8ujtsd1T24u1eWdB0z7HWpGdWXSY8oRwf26lvD2k+OSSWSxQS49E EnlUBkbmzN2aSyFqBsBOByJn7p1NRONk6ygYI+YD7W6goifntiUf6b89Ko0WltYFFEKF 56L0B119HheHKuWIA7iRvN5RA0+nlSIoX43Nk9+te7/tYIZw3ZDonmVUy1fa7plRroLN hkAQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=IOsz6GoO; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id e7si8126626pfb.298.2017.11.09.19.06.21; Thu, 09 Nov 2017 19:06:32 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=IOsz6GoO; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755784AbdKJDFn (ORCPT + 83 others); Thu, 9 Nov 2017 22:05:43 -0500 Received: from mail-it0-f68.google.com ([209.85.214.68]:56356 "EHLO mail-it0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755657AbdKJDFl (ORCPT ); Thu, 9 Nov 2017 22:05:41 -0500 Received: by mail-it0-f68.google.com with SMTP id r127so13204752itb.5; Thu, 09 Nov 2017 19:05:40 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=wtqM81zobhWkwxL/T9sT1GwdVkTWjtsQOLIIp0DkNd0=; b=IOsz6GoO5T+gqjuEe6ZJMHqeLRGdM7rmcea4+yn2Eiing9e8iyKWiQozYuZjnr6M+P qNJACvriomYx+XaUhgIFDSfv9Ju8Ceq8Js3Ho1zRHzuDZXE9f4iyav+kuKhgl1tYJSNu MRw7gGSGOvBbGklveZuQXqZlL4UeTlPHgInUxgMe2a+nlh76qdp121KAW6tfQoHMZEl7 lUUyTh6I66K4fohB98kzNS9rA2UYbCBMijSenbKhNLHPaFJRQVpPRWZEBFGLEpO9xIxV 18HQk1j1gyVTqt3t9sCt8it82yrt+n3Nu9KO/zQjLdFm9T6VRl/QkPjrn0zY2f8lQROd 8aJw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=wtqM81zobhWkwxL/T9sT1GwdVkTWjtsQOLIIp0DkNd0=; b=OKH4XupMDorlHHHywYUd0b5WxRbGOCB/PeogYlO5YblP4h3HLUlV3o/z0a7xPmvAEr raHQFz/k+AiLnxw59+it24bOxDYXCRh2c0P9IVUciV3sted2DQqPzEFn40lQ4GyGIDfy 8jCEe6NOz+oFqy4Van4pwxGKO5V4T4EB6piYLQsUt+JaTG4v9WPJhsl4r9OtWVOVAtOn EBACduBgjsHWoF1VAcfW3dwAY8ro2oNSxg2ZYM0Rkb48g6FuFc+DoDLRAXSejH8XHJhv ZpLUPE/Si+2TdSep3cuNIUINzk8LQ/pVE/pHAsvJ1+SkrXmB4qo+hnH77HlUPyiTqfwX FnBw== X-Gm-Message-State: AJaThX4OaYYkH1SAG49du1Xe6g/3bRW2ipxqGsnCrx5Ul+bOnBSPEICm z9TOzw6SJb723q8S5bwbpAslUdjN7HE+S+afXzA= X-Received: by 10.36.189.196 with SMTP id x187mr2513587ite.85.1510283140614; Thu, 09 Nov 2017 19:05:40 -0800 (PST) MIME-Version: 1.0 Received: by 10.79.196.9 with HTTP; Thu, 9 Nov 2017 19:05:39 -0800 (PST) In-Reply-To: <20171108175906.GA18718@roeck-us.net> References: <1510043274-4778-1-git-send-email-mine260309@gmail.com> <1510043274-4778-3-git-send-email-mine260309@gmail.com> <20171108175906.GA18718@roeck-us.net> From: Lei YU Date: Fri, 10 Nov 2017 11:05:39 +0800 Message-ID: Subject: Re: [PATCH v2 2/3] drivers: hwmon: Add W83773G driver To: Guenter Roeck Cc: Mark Rutland , Jean Delvare , Jonathan Corbet , Jiri Kosina , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-hwmon@vger.kernel.org, Joel Stanley , Andrew Jeffery Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Nov 9, 2017 at 1:59 AM, Guenter Roeck wrote: > On Wed, Nov 08, 2017 at 02:03:34PM +0800, Lei YU wrote: >> On Tue, Nov 7, 2017 at 10:33 PM, Guenter Roeck wrote: >> > On 11/07/2017 12:27 AM, Lei YU wrote: >> >> >> >> Nuvoton W83773G is a hardware monitor IC providing one local >> >> temperature and two remote temperature sensors. >> >> >> >> Signed-off-by: Lei YU >> >> --- >> >> v2: >> >> - Rewrite the driver using regmap >> >> - Add offset and update_interval > [ ... ] > >> >> + hwmon_dev = devm_hwmon_device_register_with_groups(dev, >> >> client->name, >> >> + regmap, >> >> w83773g_groups); >> > >> > >> > You lost me here. Why did you stop using the new API ? >> >> I was referencing some other hwmon driver (e.g. tmp401.c) and find out >> the usage of SENSOR_DEVICE_ATTR, which I feel more clear and straightforward. >> > > The new API is supposed to replace the old API to make it independent from > sysfs and to simplify the actual driver code. On a driver like this, using > the new API should reduce code and data size by 30% or more. > > If you find the new API to be less clear and less straigtforward to use than > the old API, we need to improve it. Do you have any suggestions ? > Thanks for the explanation. I have sent the v3 patch using the new API. And I do compare the binary size and it is smaller with the new API, great! > Thanks, > Guenter From 1583521813727831982@xxx Wed Nov 08 18:01:23 +0000 2017 X-GM-THRID: 1583405660341089644 X-Gmail-Labels: Inbox,Category Forums,HistoricalUnread