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 X-Spam-Level: X-Spam-Status: No, score=-2.3 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS,USER_AGENT_SANE_2 autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 3836AC4BA0E for ; Wed, 26 Feb 2020 11:50:14 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 0C50620838 for ; Wed, 26 Feb 2020 11:50:14 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="Qv+vd+2m" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 0C50620838 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=collabora.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-i3c-bounces+linux-i3c=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-ID:Subject:To:From:Date:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=jEdOy6iJ04cDoU2uptiwR97NOrJK9h5deT0n0K3qoOY=; b=Qv+vd+2m+j4qpn Yqg45+cAyvgPPcRsEHSsFr1ZuqBbnox+nPnbm/SYdbXH5OZYX5tgfDUIm3wTApVD0GXl8Y1cEeQsc s1rAE6N12W4C97Z1uSk9bUtTAwtIDHjtZmbTQM14G4SY1STgwYykSDn4pnSy0WiW5tQ3aRauJ+MLi GtWtpYTkYuq2DGGYhpay8Z62r1qlASZoShlR6+n2j0Jeik8GK5EWa1QWmseSn1UIDgwN28Ik5Krvi msjP29l02F0Vafc2bpuKOTPY9ke9v3oGtWyFe1h2IH3SUOTCSeOtvKjXd2aoaiDLNfoxT5b2KD2Gf SP7HlfTWLVbwbQoqczmg==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1j6vCd-0000D8-Al; Wed, 26 Feb 2020 11:50:11 +0000 Received: from bhuna.collabora.co.uk ([46.235.227.227]) by bombadil.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1j6vCa-00087l-JE for linux-i3c@lists.infradead.org; Wed, 26 Feb 2020 11:50:09 +0000 Received: from localhost (unknown [IPv6:2a01:e0a:2c:6930:5cf4:84a1:2763:fe0d]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: bbrezillon) by bhuna.collabora.co.uk (Postfix) with ESMTPSA id 11C0128A34E; Wed, 26 Feb 2020 11:50:07 +0000 (GMT) Date: Wed, 26 Feb 2020 12:50:04 +0100 From: Boris Brezillon To: Boris Brezillon , =?UTF-8?B?UHJ6ZW15c8WCYXc=?= Gaj , Vitor Soares , linux-i3c@lists.infradead.org Subject: Re: [PATCH 2/3] i3c: Generate aliases for i3c modules Message-ID: <20200226125004.39748c1d@collabora.com> In-Reply-To: <20200222102711.1352006-3-boris.brezillon@collabora.com> References: <20200222102711.1352006-1-boris.brezillon@collabora.com> <20200222102711.1352006-3-boris.brezillon@collabora.com> Organization: Collabora X-Mailer: Claws Mail 3.17.4 (GTK+ 2.24.32; x86_64-redhat-linux-gnu) MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20200226_035008_792605_4DA2CFFE X-CRM114-Status: UNSURE ( 7.35 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-i3c@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Linux I3C List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: linux-kernel@vger.kernel.org Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-i3c" Errors-To: linux-i3c-bounces+linux-i3c=archiver.kernel.org@lists.infradead.org On Sat, 22 Feb 2020 11:27:10 +0100 Boris Brezillon wrote: > +static int do_i3c_entry(const char *filename, void *symval, > + char *alias) > +{ > + DEF_FIELD(symval, i3c_device_id, match_flags); > + DEF_FIELD(symval, i3c_device_id, dcr); > + DEF_FIELD(symval, i3c_device_id, manuf_id); > + DEF_FIELD(symval, i3c_device_id, part_id); > + DEF_FIELD(symval, i3c_device_id, extra_info); > + > + strcpy(alias, "i3c:"); > + ADD(alias, "dcr", match_flags & I3C_MATCH_DCR, dcr); > + ADD(alias, "manuf", match_flags & I3C_MATCH_MANUF, dcr); ^manuf_id > + ADD(alias, "part", match_flags & I3C_MATCH_PART, dcr); ^part_id > + ADD(alias, "ext", match_flags & I3C_MATCH_EXTRA_INFO, dcr); ^extra_info _______________________________________________ linux-i3c mailing list linux-i3c@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-i3c