Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp852681pxa; Sat, 22 Aug 2020 02:26:10 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyHCqRIi/IEyZXOy+4AbpyvpLGT3X+lJBv6rhYZNpN6uSEsBxgP3TlZpYvQG20pivdk8HKz X-Received: by 2002:a17:906:80c:: with SMTP id e12mr6858011ejd.128.1598088370659; Sat, 22 Aug 2020 02:26:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1598088370; cv=none; d=google.com; s=arc-20160816; b=ZyJpx4xfB9B+Tg5jfJu7BqK4XZiJLVLjCB35ViKHueVstYbXPPhGXolZtrShBIGnum XBgsymBpIXij9zSShRJRWX2IU6r/Pphw0vHRBvs7n5JN5ZHnaiqWkmyYMIjGhASo5GvR ctEmGyzsDAkq4nE5/rnU9F9CYM4ADz3PvZ6L6ZwZcCXvN10N90sEwybMz04tIhv1SaBc kjR49gsI37YX71OCWnWtoGK2WpRrmsT8NtmmAHHtga27xY1dVVzA6hxOd/G5/P580bQQ HSVrau5BvsSnEPcReMnaex15DMIvan9GJ4bq2alnY5c74pE/HE1lIFr8XV/HlkPAJpLC 8eQQ== 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 :in-reply-to:references:mime-version:dkim-signature; bh=aI39wUQrT4gwVKkfiPc/6BrYsBsFxtTiYiQuKGUyQNc=; b=qPjfaPOaOoP3HuOuREqqLsIf+IBoEq4EH9IccKQBriDLLL1Q/0jFr+wAuATPRXbFxx Zn683hPwSG4SSFxlwlCGZEAUUoVUkmjsYcvsUA7Bin0cwXYlFQm8M/6uddNTWwVxwTug CdxmkoFsvemJmY48EVebuaY+XXuYHT7QQksoDgERXEi8lgamIq3MWO40pqUx44o2Gu8g uD2csaQCXmYepVNMY+2Ca5ALDxr5ZGoVUcBAMg1C2uikz8Dw1LuQ1kSUU5jhCP53zh2z wK9gjuoR1v5yQajWDkAvkdIeQIGwP3m2q5TcKf5XvNbHHOKM7xeMeN/mngJ5eXPhBcjp Swqw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=BjRC2XO6; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id s2si131294ejs.269.2020.08.22.02.25.47; Sat, 22 Aug 2020 02:26:10 -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; dkim=pass header.i=@gmail.com header.s=20161025 header.b=BjRC2XO6; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726938AbgHVJXa (ORCPT + 99 others); Sat, 22 Aug 2020 05:23:30 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49818 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725864AbgHVJXa (ORCPT ); Sat, 22 Aug 2020 05:23:30 -0400 Received: from mail-pg1-x542.google.com (mail-pg1-x542.google.com [IPv6:2607:f8b0:4864:20::542]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 18DC2C061573; Sat, 22 Aug 2020 02:23:30 -0700 (PDT) Received: by mail-pg1-x542.google.com with SMTP id v15so2134841pgh.6; Sat, 22 Aug 2020 02:23:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=aI39wUQrT4gwVKkfiPc/6BrYsBsFxtTiYiQuKGUyQNc=; b=BjRC2XO6ziRv5s9rs7O7otCwVIpQS+qXELx0bfeHcgi7yZMg4ZDjYCKCzeE3cSrn7J h4rt+xfTU7u3rEtLqLTGv/nx/hmTQOJM5YZIJH2l2TP+6Z9sWo6O0X+LDYXWfDrGHZFJ Aha7B53M6BI+GRJorY7VSNxeD7kQ82nnZeclcZICDoVEFKn1GwaFbFkmNZvRVFMWjcLk ygWjIEK/hsHVLQbtAM+aq9UkdYx1spA51nTnAHVL+b+nu1B6VMIIY2vW6F6KkIXUIwfb zzBeU9UXeVKXTAmxcK+hVjZq4b7zZxDNIi/Q55A/2LmnGUHt45k1x0ry0jfeNHoWkAZA RlQg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=aI39wUQrT4gwVKkfiPc/6BrYsBsFxtTiYiQuKGUyQNc=; b=CgHdDhIh1TS0kOaQCWSKo5f9MMBiPgtCe34Ot5b9FLpy85E60P42c3Ho1ivcEvN91D 1VpE3vHAoSGx0dZSsBBK93Ql6tOFuwkHoCSqpyNBJwFhCGgeg5W6T5gYJfoQSKYLBLQQ IUynCCG1hnGubSITmGiqqfD9ckIVHOir9PqexS+rYPNHv/UBN9P8Jj8A996B4Wy36oS5 VUfqcfOn/K75uspeAo+z07KFcHeclMI0SpP0/QEQpu9noidie69ZttrQr6TtSkFsiX+9 iILXAviE1S9UYRBa42Uq+HCt6YCjqSftcpwzlRSOwnbsyDXg2fa6nvfkqfzgY4ncTv5r UKBA== X-Gm-Message-State: AOAM530GjCK3lEzGRl/2h0i12UvH0QXuoh/M21OwH0Eax+WbibpkuHpb mW8Gb9htfwPYzl8BIrQ5U4nTBETIynx/wJRmXlH3svQkzGKsfw== X-Received: by 2002:a62:c319:: with SMTP id v25mr5537864pfg.130.1598088209565; Sat, 22 Aug 2020 02:23:29 -0700 (PDT) MIME-Version: 1.0 References: <20200821105618.GO1891694@smile.fi.intel.com> In-Reply-To: From: Andy Shevchenko Date: Sat, 22 Aug 2020 12:23:12 +0300 Message-ID: Subject: Re: [PATCH v9 2/2] Add PWM fan controller driver for LGM SoC To: "Tanwar, Rahul" Cc: Andy Shevchenko , =?UTF-8?Q?Uwe_Kleine=2DK=C3=B6nig?= , linux-pwm@vger.kernel.org, Lee Jones , Thierry Reding , Philipp Zabel , Rob Herring , Linux Kernel Mailing List , devicetree , songjun.Wu@intel.com, cheol.yong.kim@intel.com, qi-ming.wu@intel.com, rahul.tanwar.linux@gmail.com, rtanwar@maxlinear.com 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 Sat, Aug 22, 2020 at 8:25 AM Tanwar, Rahul wrote: > On 21/8/2020 6:56 pm, Andy Shevchenko wrote: > > On Fri, Aug 21, 2020 at 05:32:11PM +0800, Rahul Tanwar wrote: ... > >> +#include > >> +#include > >> +#include > >> +#include > > We haven't settle this yet... > > I investigated more about it. I was getting build error because we were > relying on of_device.h for including platform_device.h. You are right that > we are not using anything from of_device.h. So i removed of_device.h from > driver and added include & build is ok. > > Regarding mod_devicetable.h header, it gets included indirectly from > which includes of.h which includes mod_devicetable.h. So i > think no point including it again in the driver. Ideally you should include all headers you have direct users of. mod_devicetable.h is exactly one and I doubt the pwm.h should include it, but it's another story. There are, of course, some cases when not all required because there is a guarantee that upper one includes lower one. For example, if you use bitops.h there is no need to include bits.h. > >> +#include > >> +#include > >> +#include -- With Best Regards, Andy Shevchenko