Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp2850549pxb; Mon, 1 Nov 2021 03:11:24 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxzQNtR1tvFwftAogpKH8C728wYWOFJzT9gzEX8Bs9qeP1NBaB3pYm9vpaR9Xyl5eZEEnVJ X-Received: by 2002:a6b:f00d:: with SMTP id w13mr19371405ioc.26.1635761484750; Mon, 01 Nov 2021 03:11:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1635761484; cv=none; d=google.com; s=arc-20160816; b=iW9HJEaxx0e24zj0RJZ6klU/3DYEt/3lIG+gtYO1xi/1ABsXpEYo3UkUOQPY7Bt9A6 u4COMHqsA5JuK6zpJKnEhZaFRkFbDY+3xczPejDFi64sCIfyS0nB2YepDhzDT7O65ZPS B+IEyYlQmHwY7D6IXqDyw2v99e3OlQryIted5FmawVlt0462GDMdSaR+yvEWEzfObDC3 onoHISOhjiddR6rK4eOmnwPb3xHJrzR+hWELRHN93QQrEYxcfKO5XYmAbiaGsskbXNom 89dyet1B5zP3fHViCZtgJSuCOotHKfSLnl8Bvgd58OJCBkaQzVnoGt7/adsukbW1EEUk KiRg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:jabber-id:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:dkim-signature:date; bh=K+gnLzL3dBnEMgWrZAkHVZSzkc+WjSnHp9ge8Z0RaIk=; b=xL//JiS/cz6L8jXBeB89nERriFIO7rsTXJo1L3vAGOEhrlMOVoH+wjuZFwVvpWBJ9k Vkmv4b6C3HN7eBLqZueugeH1q4T06i8bGWBrSyx1emDPBTsISs/S7dSKZcfhlW1xprXQ w07fZqySEqnm2EqPyyQtvFS2V5eXqzfPIL0511w5nxMcwGr9EVU+tZEeBDXfwINPqA/M Mxoq5ZSixKn6vS1UMuzeBLCjY229/3aqmisdR56J/vRuKvwUglp/kPBtSdbFq1nQQVHx II0RgE+DJLhTzhFFypsGcnWYcFOA+ZOmY+WMeMmw4DQsrZFrK11GJBGMwkR7lARESL08 ZTXA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@weissschuh.net header.s=mail header.b="t/eL9dla"; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id h11si16121057ila.52.2021.11.01.03.11.13; Mon, 01 Nov 2021 03:11:24 -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=fail header.i=@weissschuh.net header.s=mail header.b="t/eL9dla"; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232014AbhKAKLp (ORCPT + 99 others); Mon, 1 Nov 2021 06:11:45 -0400 Received: from todd.t-8ch.de ([159.69.126.157]:50805 "EHLO todd.t-8ch.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232024AbhKAKLk (ORCPT ); Mon, 1 Nov 2021 06:11:40 -0400 Date: Mon, 1 Nov 2021 11:09:05 +0100 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=weissschuh.net; s=mail; t=1635761345; bh=LQZlI/sMH6WQ1R6Ac/PazlDCwM196E6fO967FhmAjMI=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=t/eL9dlaWPmjiKHRBTXr7otVbaI5yDHZ+YJW44tZdw06c7uRiCAnxEONBSNGKuAZC fFpL2yD1zVXexKnZ015vg8mko0lmyS3iuYeoV+Eo2EuV7dICDre2lJPhWhQC/8yG/w QJzO9LBLLZvMtef7AxHHhvoGPAASDQIpyRvd/wfg= From: Thomas =?utf-8?Q?Wei=C3=9Fschuh?= To: Hans de Goede Cc: linux-input@vger.kernel.org, linux-kernel@vger.kernel.org, linux-kbuild@vger.kernel.org, Srinivas Pandruvada , Jiri Kosina , Benjamin Tissoires , Masahiro Yamada , Michal Marek , Nick Desaulniers Subject: Re: [PATCH 1/6] HID: intel-ish-hid: add support for MODULE_DEVICE_TABLE() Message-ID: <091a4bb3-0734-4b58-9417-7ef18fcc385b@t-8ch.de> References: <20211029152901.297939-1-linux@weissschuh.net> <20211029152901.297939-2-linux@weissschuh.net> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: Jabber-ID: thomas@t-8ch.de X-Accept: text/plain, text/html;q=0.2, text/*;q=0.1 X-Accept-Language: en-us, en;q=0.8, de-de;q=0.7, de;q=0.6 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2021-11-01 10:58+0100, Hans de Goede wrote: > On 10/29/21 17:28, Thomas Weißschuh wrote: > > This allows to selectively autoload drivers for ISH devices. > > Currently all ISH drivers are loaded for all systems having any ISH > > device. > > > > Signed-off-by: Thomas Weißschuh > > > > --- > > > > Cc: linux-kbuild@vger.kernel.org > > Cc: linux-input@vger.kernel.org > > Cc: Srinivas Pandruvada > > Cc: Jiri Kosina > > Cc: Benjamin Tissoires > > Cc: Hans de Goede > > Cc: Masahiro Yamada > > Cc: Michal Marek > > Cc: Nick Desaulniers > > --- > > include/linux/mod_devicetable.h | 13 +++++++++++++ > > scripts/mod/devicetable-offsets.c | 3 +++ > > scripts/mod/file2alias.c | 24 ++++++++++++++++++++++++ > > 3 files changed, 40 insertions(+) > > > > diff --git a/include/linux/mod_devicetable.h b/include/linux/mod_devicetable.h > > index ae2e75d15b21..befbf53c4b7c 100644 > > --- a/include/linux/mod_devicetable.h > > +++ b/include/linux/mod_devicetable.h > > @@ -895,4 +895,17 @@ struct dfl_device_id { > > kernel_ulong_t driver_data; > > }; > > > > +/* ISHTP (Integrated Sensor Hub Transport Protocol) */ > > + > > +#define ISHTP_MODULE_PREFIX "ishtp:" > > + > > +/** > > + * struct ishtp_device_id - ISHTP device identifier > > + * @guid_string: 36 char string of the form fa50ff2b-f2e8-45de-83fa-65417f2f49ba > > + * @context: pointer to driver specific data > > + */ > > +struct ishtp_device_id { > > + guid_t guid; > > The kdoc comment documents a context pointer, but this is missing from the > actual struct. Having some sort of driver_data (1) field here would be good IMHO. Fine for me. I left it out because nothing would be using it at the moment and it would have been easy to add when needed. Do you want me to send a v2 for that or would you add it when merging? (Or remove the spurious comment) > Regards, > > Hans > > 1) "context" is fine, but AFAIK almost all other foo_device_id structs call this > driver_data, so that would be more consistent IMHO. Thomas