From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-pl1-f172.google.com (mail-pl1-f172.google.com [209.85.214.172]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 68CF138DD3 for ; Fri, 29 Mar 2024 20:09:03 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.214.172 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711742946; cv=none; b=XiYP101VbYRfTAqnZV20H6ES4ob3v/g1YUssMwBWILKKaumQ5tB3yaCUn7JI50xDCL6vJ5YHI7yMgDFb0xtQJjUIslDXwdgI6OyriokxTKWq7YXjPfkjqFgxI5AgZedgWsKcdrfzdljueYlqBxLpO3ImmfNFAO9JgIqZu1U8kec= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711742946; c=relaxed/simple; bh=kq4W84OOdXe0SAH1kwi4zfWhegD8EvP3wUxvTk2hYHU=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=q5IV+qyIlxVzNqsQDvTt8/kJUS+TffSMRhiWic499VxeYSdBcC9Wfcsu4hVYJ+ikz2dDuKd2C5m2I7lSEl1s7h0hRNImur0M6F42pjBtWxhMhHWlPKm7IzW4LnDHCjllb4nfuURAgEGDWL2O9ObkYYieISTDzJYnQq6GcRjaz7Y= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com; spf=pass smtp.mailfrom=google.com; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b=iW1HuhrF; arc=none smtp.client-ip=209.85.214.172 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=google.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b="iW1HuhrF" Received: by mail-pl1-f172.google.com with SMTP id d9443c01a7336-1e062f3a47bso165245ad.1 for ; Fri, 29 Mar 2024 13:09:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1711742943; x=1712347743; darn=vger.kernel.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=X51BRpaIR1rgIkHIXzIm1Zr/UOpT/8fzPdwE34KNRpU=; b=iW1HuhrF496qO5kBQCRFvE5HqWF0ssPJiI0U+LcTQY2iquuhwKTdszEb9ZKZpVGV9q u8hyMEZYXxuujtCaYHs3vUCaPvu5bLM2z9ZKRPf0h848ZGUU3Y6pY44ng+N6dkkKQAKR xxN42SOVyD/GxdiPsJbmagxXthlpO92AcgxeU9xvj0Mu7RGmYj0wiY/G1p0HsIzodDlA 1y1s8AxmC8FXdb7FhhtFVjd2ExNM0/oj91tdhqTSSuFIP6k40UG7vlUPXhwnWE5n7uLK 2RdeQDrj9VspXSXiT0AuT2hx38ECO5Ns6TnIlEKeUqWda7vKjFnBx4+1dYbpLmZXktAr biIw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1711742943; x=1712347743; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=X51BRpaIR1rgIkHIXzIm1Zr/UOpT/8fzPdwE34KNRpU=; b=Cy6Z0cO8nT1atJXKS//X8CpkNkhJTDo+YOPyr4In4kN2zmhhSgsx03K7R7pyz/VCCL AUgebQEwpCkdCuFNgF2WvQEnuuRlxgFqgiR7mXyBSMOMrNmNTFR1Vi6xgMpqSNdff9+e 0628O6/ZYeDYwHgRdieZfufEwgcGPLhUN6ZwFJyxKhuFdt6POOh139VzbPof0rGFMt8N eSuXFmj6MHtCpUDLG3Mj9pvve07CpbOzcJZcNJWS+Y9/legeEI++UoiMXnwMZD/IN5HY XOMc0PVjt3YZPSkub71agnnZ7ctmvNqq+3KNexoktFdMyKolKeTs8ygXQYbsoYE9cLLN 0+GA== X-Forwarded-Encrypted: i=1; AJvYcCVdBRRsftmGOTUJ5AfgwPvIUmP2Q2vu3QkB9WBu9aMWTJ/7YLEgny5ASvg7o1CR0yuinwZKW7EtTlGBL6itqZHqcegAsVQ/kYqy X-Gm-Message-State: AOJu0Yw0tNJCLZaRHr2y7NImxJ8ZKaeOvBsISXQ7i1HV13nucIEEgwDG 0d18DIjhOSUQ5ens0sNmTjmy5I42eMvK3PixOqLUFsEyreC5S4sS9wRb3oN32w== X-Google-Smtp-Source: AGHT+IEVROVN2L7PJvbq/CNuGxVo6y8aWUouVMsGMh1RaHF1r6lXWYFexksw0vPDy+coj2+ze5VoPQ== X-Received: by 2002:a17:902:fc44:b0:1e0:d205:2d80 with SMTP id me4-20020a170902fc4400b001e0d2052d80mr271499plb.22.1711742942350; Fri, 29 Mar 2024 13:09:02 -0700 (PDT) Received: from google.com (236.219.125.34.bc.googleusercontent.com. [34.125.219.236]) by smtp.gmail.com with ESMTPSA id g22-20020a170902d5d600b001dba98889a3sm3837003plh.71.2024.03.29.13.09.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 29 Mar 2024 13:09:01 -0700 (PDT) Date: Fri, 29 Mar 2024 20:08:57 +0000 From: Benson Leung To: Tzung-Bi Shih Cc: bleung@chromium.org, groeck@chromium.org, linus.walleij@linaro.org, brgl@bgdev.pl, hverkuil-cisco@xs4all.nl, mchehab@kernel.org, sre@kernel.org, alexandre.belloni@bootlin.com, chrome-platform@lists.linux.dev, pmalani@chromium.org, linux-gpio@vger.kernel.org, linux-media@vger.kernel.org, linux-pm@vger.kernel.org, linux-rtc@vger.kernel.org, krzk@kernel.org Subject: Re: [PATCH 04/18] platform/chrome: cros_ec_sensorhub: provide ID table for avoiding fallback match Message-ID: References: <20240329075630.2069474-1-tzungbi@kernel.org> <20240329075630.2069474-5-tzungbi@kernel.org> Precedence: bulk X-Mailing-List: linux-rtc@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="5eYOnsgA3ze6A0qN" Content-Disposition: inline In-Reply-To: <20240329075630.2069474-5-tzungbi@kernel.org> --5eYOnsgA3ze6A0qN Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri, Mar 29, 2024 at 03:56:16PM +0800, Tzung-Bi Shih wrote: > Instead of using fallback driver name match, provide ID table[1] for the > primary match. >=20 > [1]: https://elixir.bootlin.com/linux/v6.8/source/drivers/base/platform.c= #L1353 >=20 > Signed-off-by: Tzung-Bi Shih Reviewed-by: Benson Leung > --- > drivers/platform/chrome/cros_ec_sensorhub.c | 9 ++++++++- > 1 file changed, 8 insertions(+), 1 deletion(-) >=20 > diff --git a/drivers/platform/chrome/cros_ec_sensorhub.c b/drivers/platfo= rm/chrome/cros_ec_sensorhub.c > index 31fb8bdaad5a..50cdae67fa32 100644 > --- a/drivers/platform/chrome/cros_ec_sensorhub.c > +++ b/drivers/platform/chrome/cros_ec_sensorhub.c > @@ -8,6 +8,7 @@ > =20 > #include > #include > +#include > #include > #include > #include > @@ -247,17 +248,23 @@ static SIMPLE_DEV_PM_OPS(cros_ec_sensorhub_pm_ops, > cros_ec_sensorhub_suspend, > cros_ec_sensorhub_resume); > =20 > +static const struct platform_device_id cros_ec_sensorhub_id[] =3D { > + { DRV_NAME, 0 }, > + {} > +}; > +MODULE_DEVICE_TABLE(platform, cros_ec_sensorhub_id); > + > static struct platform_driver cros_ec_sensorhub_driver =3D { > .driver =3D { > .name =3D DRV_NAME, > .pm =3D &cros_ec_sensorhub_pm_ops, > }, > .probe =3D cros_ec_sensorhub_probe, > + .id_table =3D cros_ec_sensorhub_id, > }; > =20 > module_platform_driver(cros_ec_sensorhub_driver); > =20 > -MODULE_ALIAS("platform:" DRV_NAME); > MODULE_AUTHOR("Gwendal Grignou "); > MODULE_DESCRIPTION("ChromeOS EC MEMS Sensor Hub Driver"); > MODULE_LICENSE("GPL"); > --=20 > 2.44.0.478.gd926399ef9-goog >=20 >=20 --5eYOnsgA3ze6A0qN Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEABYIAB0WIQQCtZK6p/AktxXfkOlzbaomhzOwwgUCZgcf2QAKCRBzbaomhzOw wpTIAP9SicLM3XbjTEPorbtG3rbMhaOnePPKH5yjXBIFP7/qXwEAuss+4GxuEWd7 nS0Spbtmg8usgOxp39oCbGQ+ouuUiQs= =oAeE -----END PGP SIGNATURE----- --5eYOnsgA3ze6A0qN--