Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp795779rwd; Tue, 16 May 2023 07:51:43 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7TM63WuywavkUgR8O9w+HAJXhiKKV9yYc8V9UCl02GmFuJadCqkvzKNc63yKchNhLni/pK X-Received: by 2002:a05:6a00:1a41:b0:63b:8778:99e4 with SMTP id h1-20020a056a001a4100b0063b877899e4mr47608138pfv.2.1684248702853; Tue, 16 May 2023 07:51:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684248702; cv=none; d=google.com; s=arc-20160816; b=fdK3soHt0Ir6K79OScwPhWL6FqYHVr0m+y/lLlp2h50tX5Es+W/IwyOwE3CC5cwqdv U3KdfD02ARttNJfu8v1O7nF6BpS/Dw6AwJ3ynSYUG1MjR2DxrmmYcRJF69Fb/RigKdnF Aps684bp02SrriOsJZqcKI3BXLAeg5TWq5PKf1qQHH867sXkxH/pjBtLzAwD8eTjzg/3 kQu+BT4/y/E/SZSicmCjMPtm2PV8p21x9/zmOzCHEjHy1PYtwKmcUey+f3q2H6LGjARA XtsXZGhfyM1QecYiP2lKqA2EMDaTx5IkmUO/ZXepyrhSI5EV1XOXC9zUFsO+H1Kmhvnz PaTg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=UOhmwZfKJQlJRGzere4rhYjpul5gFst5eFskc2CxCHI=; b=B+DMYpECuxJE1fG6rj/vOuNXK4IVodEdYfsY5zmmRs9G3vMFm+LAoRydnDADZiHGs5 E1WhnDnLmD+QItuydqlY9KaIcF3SIAotayMFJblmlU6rpW0gVCGAvu1UECnceFXEuArj 7f3a3pV7cnhEA/o3deQNVzY/zUWi3Qtm3XlM9LlaG2gIVwcmUrqVC9Ru+dLtJ6yE6GvB DUYkee2A/ebSvdGAT/Hh/fYECfIhfiKJ4jksumXVF9mluoh0z9axWwMyqabB8Q4nV+Ep rYA+3T1sqV/JRH+qCfFP9mVU3iOBWNjMPT1HmvqUlwcWLRThMS99+JnDXYDM8JIFUkoH Un1A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bgdev-pl.20221208.gappssmtp.com header.s=20221208 header.b=jDHNlDwr; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id g205-20020a6252d6000000b006452ad4ae32si19675149pfb.237.2023.05.16.07.51.30; Tue, 16 May 2023 07:51:42 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@bgdev-pl.20221208.gappssmtp.com header.s=20221208 header.b=jDHNlDwr; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233325AbjEPOqx (ORCPT + 99 others); Tue, 16 May 2023 10:46:53 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54078 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233401AbjEPOqv (ORCPT ); Tue, 16 May 2023 10:46:51 -0400 Received: from mail-vs1-xe2a.google.com (mail-vs1-xe2a.google.com [IPv6:2607:f8b0:4864:20::e2a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4948C30F1 for ; Tue, 16 May 2023 07:46:50 -0700 (PDT) Received: by mail-vs1-xe2a.google.com with SMTP id ada2fe7eead31-42c38a6daf3so9711130137.3 for ; Tue, 16 May 2023 07:46:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bgdev-pl.20221208.gappssmtp.com; s=20221208; t=1684248409; x=1686840409; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=UOhmwZfKJQlJRGzere4rhYjpul5gFst5eFskc2CxCHI=; b=jDHNlDwrYTXxID7x+2TVi7DdflqOASVTWysEmnf2zCJMvpnBqux5xOnUVcjzBS7zwE lrM7dg4qxLxEc2XlNPkELa+vxwsaVxOhx51xGK0a+WqH5dQ+Dvfbb+5PbCw6rwx4yj/S cUBnPfXJc/DRDwA3UeYUq826fNgCbiXRN3dS5skX5Cut6B/dxoctwm1NuSxkBbSGU8M5 0OqfGNPUVRN4ZQuF4vjrH7dQkSMuRAfveHxO+szROC0WdXNh4wklUkIV3LPhoBMJLwW2 xTmWGY4TIeJ4aYhCbfwANBEhmoxnD8LV3wJCXdMgB9VIQd5Fbj2eJ8iybxjuLSp0vtHG qlxw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1684248409; x=1686840409; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=UOhmwZfKJQlJRGzere4rhYjpul5gFst5eFskc2CxCHI=; b=b3r4rbdFXaS7wdIDO1d+ZiC/zV3Dz1o1fuJNQaxkN+1XYjdXTtYHjqB3JcgH23DtxQ CcVbVqQsrboB7haWTUaZuNO3AbQkQ8UvDbz6LhT5t0vbvQUVCiLFua/sH6gr8YzQwcMD eSw7osZGIncoXPI0Yu9ckFIya3SvQUJ5CT4iWpoYtCQ+nV+UmGFYogIanw2Q9roi40pq GN1jp9g07U6dCwTotxU1HazMoUZFfDBLLWmbCZSmjeCUzCpBAbKEunocr5mtjTICL6N9 bOJsfreuf9EkMRR9roEZfaL51wWrn6pKWXSZ2u7NrL0C2LZF5aKlYqVu0QPKQhk4BeO+ VBsQ== X-Gm-Message-State: AC+VfDy9N+2blcz6iz0KC3fImv7CHtzfbJfdi94AXspT+AA3rb6JvTvg uOqGc5NYOYPJlVn7Z6SLhroqO9SvqMC7UoVBw1tK6AF5hLRwIVgl X-Received: by 2002:a67:de14:0:b0:434:9021:30c1 with SMTP id q20-20020a67de14000000b00434902130c1mr14963256vsk.14.1684248409391; Tue, 16 May 2023 07:46:49 -0700 (PDT) MIME-Version: 1.0 References: <20230515175042.495377-1-afd@ti.com> In-Reply-To: <20230515175042.495377-1-afd@ti.com> From: Bartosz Golaszewski Date: Tue, 16 May 2023 16:46:38 +0200 Message-ID: Subject: Re: [PATCH v2 1/2] i2c: davinci: Use platform table macro over module_alias To: Andrew Davis Cc: Wolfram Sang , linux-arm-kernel@lists.infradead.org, linux-i2c@vger.kernel.org, linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_NONE, T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, May 15, 2023 at 7:50=E2=80=AFPM Andrew Davis wrote: > > Generates the same platform module alias. More standard usage. > > Signed-off-by: Andrew Davis > --- > drivers/i2c/busses/i2c-davinci.c | 8 ++++++-- > 1 file changed, 6 insertions(+), 2 deletions(-) > > diff --git a/drivers/i2c/busses/i2c-davinci.c b/drivers/i2c/busses/i2c-da= vinci.c > index 9750310f2c96..c55bd937def7 100644 > --- a/drivers/i2c/busses/i2c-davinci.c > +++ b/drivers/i2c/busses/i2c-davinci.c > @@ -940,12 +940,16 @@ static const struct dev_pm_ops davinci_i2c_pm =3D { > #define davinci_i2c_pm_ops NULL > #endif > > -/* work with hotplug and coldplug */ > -MODULE_ALIAS("platform:i2c_davinci"); > +static const struct platform_device_id davinci_i2c_driver_ids[] =3D { > + { .name =3D "i2c_davinci", }, > + { /* sentinel */ } > +}; > +MODULE_DEVICE_TABLE(platform, davinci_i2c_driver_ids); > > static struct platform_driver davinci_i2c_driver =3D { > .probe =3D davinci_i2c_probe, > .remove =3D davinci_i2c_remove, > + .id_table =3D davinci_i2c_driver_ids, > .driver =3D { > .name =3D "i2c_davinci", > .pm =3D davinci_i2c_pm_ops, > -- > 2.39.2 > Reviewed-by: Bartosz Golaszewski