From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 8B8B4C43334 for ; Wed, 6 Jul 2022 12:23:36 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233480AbiGFMXf (ORCPT ); Wed, 6 Jul 2022 08:23:35 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57758 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231875AbiGFMXe (ORCPT ); Wed, 6 Jul 2022 08:23:34 -0400 Received: from mail-ej1-x62b.google.com (mail-ej1-x62b.google.com [IPv6:2a00:1450:4864:20::62b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 739C21F2D1 for ; Wed, 6 Jul 2022 05:23:32 -0700 (PDT) Received: by mail-ej1-x62b.google.com with SMTP id dn9so21525890ejc.7 for ; Wed, 06 Jul 2022 05:23:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bgdev-pl.20210112.gappssmtp.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=VB+XA3IDxavpwM2kvuBHOGhKgs/Fp62gFOkSUsNaL9U=; b=d7b0mvt0tmPB0Hv2G7+i/1v4vEYW4HbPR/vPJLf71SuekB3D2OTNw77f3ifEgGrWZC HQaZovmO9gIF+IvsNWEUXksIF1VBKaKQQl2qiJEdACJlc1AILOCUxBJKO8soewc8RiMx KfAxBxK6bsztCDS0FSBoRgPr9Ng78IEKMjQTH5KGj68ilrQna8Y9kY2CmDgsxoonYu4q PkStO51Xu5X+xGqDvhFRH6gKmoPC4crs9pwIciEV2QTRpnk9kF0rta0Ax7Atjj/K0qr0 SgIyUbPnjCS87PpjsCyal1n97+RELqA9v95obMmt8IvJ1IjVNssktZ1pljy4pRuO1lKv noeg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=VB+XA3IDxavpwM2kvuBHOGhKgs/Fp62gFOkSUsNaL9U=; b=dFlrqn6zfRiCzX/FimzvZemhlOZsNakFV0tY87DWx7UWbIPzyQc+2QVpop1NVZuYb3 Nf79p0tLNMOqxUPgU7a1je2Q91WTgnwM4apJNZhFBfpjp2BZxqLpdjv6nGRP+zGuBwzQ 2ayf0SjE72XU24IBDSLKZ7Evy+uXL95gV+l+e1eQ8StOPExmR3J6hWU2T6Flw+eFRy5T 2ZN1mQJ/cxsSFqnqapUhHtxwgcDqMMFMb4UTtyPAnN2brRcztDQTJ7ew5rXc3Dc3OKmj FtjPUfqhYduNX90FsPajSG0loVN5atE06PhVk6YC6T3jxb4H/qQ8Fu4YOh08W8qzc0PK 5FUQ== X-Gm-Message-State: AJIora+0ZaKY/ay0NNHOlOeawkh5p7uSJYq6d8NEZxTCiuiOuLf9A1uQ CDO3lnRjhybzheze6Bme+ZvLr2jSY9JhNoqxNBnjaA== X-Google-Smtp-Source: AGRyM1vH/+0ZXb9W2eBjdOWVBTZhDKCk9PWkosN1gAB42wcg7fQjA1ljF4k4oumEqyqyZLDTEIGxzNPQKw/NNgYwrT0= X-Received: by 2002:a17:907:2bd0:b0:72a:7a08:aeb5 with SMTP id gv16-20020a1709072bd000b0072a7a08aeb5mr30097464ejc.492.1657110211045; Wed, 06 Jul 2022 05:23:31 -0700 (PDT) MIME-Version: 1.0 References: <20220628193906.36350-1-andriy.shevchenko@linux.intel.com> In-Reply-To: <20220628193906.36350-1-andriy.shevchenko@linux.intel.com> From: Bartosz Golaszewski Date: Wed, 6 Jul 2022 14:23:20 +0200 Message-ID: Subject: Re: [PATCH v1 1/3] gpio: adp5588: Switch from of headers to mod_devicetable.h To: Andy Shevchenko Cc: "open list:GPIO SUBSYSTEM" , Linux Kernel Mailing List , Michael Hennerich , Linus Walleij Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-gpio@vger.kernel.org On Tue, Jun 28, 2022 at 9:39 PM Andy Shevchenko wrote: > > There is nothing directly using of specific interfaces in this driver, > so lets not include the headers. > > Signed-off-by: Andy Shevchenko > --- > drivers/gpio/gpio-adp5588.c | 8 +++----- > 1 file changed, 3 insertions(+), 5 deletions(-) > > diff --git a/drivers/gpio/gpio-adp5588.c b/drivers/gpio/gpio-adp5588.c > index e388e75103f4..51ed23ba4645 100644 > --- a/drivers/gpio/gpio-adp5588.c > +++ b/drivers/gpio/gpio-adp5588.c > @@ -6,7 +6,6 @@ > * Copyright 2009-2010 Analog Devices Inc. > */ > > -#include > #include > #include > #include > @@ -14,7 +13,8 @@ > #include > #include > #include > -#include > +#include > +#include > > #include > > @@ -427,18 +427,16 @@ static const struct i2c_device_id adp5588_gpio_id[] = { > }; > MODULE_DEVICE_TABLE(i2c, adp5588_gpio_id); > > -#ifdef CONFIG_OF > static const struct of_device_id adp5588_gpio_of_id[] = { > { .compatible = "adi," DRV_NAME, }, > {}, > }; > MODULE_DEVICE_TABLE(of, adp5588_gpio_of_id); > -#endif > > static struct i2c_driver adp5588_gpio_driver = { > .driver = { > .name = DRV_NAME, > - .of_match_table = of_match_ptr(adp5588_gpio_of_id), > + .of_match_table = adp5588_gpio_of_id, > }, > .probe_new = adp5588_gpio_probe, > .remove = adp5588_gpio_remove, > -- > 2.35.1 > Applied all three, thanks! Bart