Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp4830987ybv; Wed, 26 Feb 2020 03:52:27 -0800 (PST) X-Google-Smtp-Source: APXvYqwQlYXUgc8OSu7iFmqShSuFXPqgLbbjm+90C7Pn5OfyQgoqFWNmkkgMg6SJBqGylz7i6LEm X-Received: by 2002:aca:5746:: with SMTP id l67mr2804631oib.60.1582717947058; Wed, 26 Feb 2020 03:52:27 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1582717947; cv=none; d=google.com; s=arc-20160816; b=vpxnoGx3y80gOcbfZxJG8oSDbsN0gFKAPNTyNioo9syLK2WVQrH2UF5pGEvaHbqxNi pw2Gs09GpNUjFyKFmNHA48CQaDyuJ7PZUB9s2DNi5OSvBTeJJm8G4M/L5FlWTArbWeCJ qaVhJQdhb1zXkLNagOt8frqdgiGkI2mFt6WtkQ1VP+rfpMEimKJW0pctxhpg81MMtAy6 qKJiPwX/DcSZqhR/ye8O5bNj93JWR+prtgIErHshD6F/pROFD9hMMvOkO+PfhJS8mjv+ HhxDLTIPFfWuhxwIMUSphs8NmhHk+61i9S4kgTIX1fhDi1UGZqtl82LQmdZTogqURWeZ gSgw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :organization:references:in-reply-to:message-id:subject:cc:to:from :date; bh=9adyXkzMfMZBFAih9YdFAWrghMdP/Yr+Eqkx3jwQuHA=; b=k6ZLJ24FmTnHD5cqpQ+NzK4DVWJOLvvAQzMjF5Kz4B9hGiAQMV5wSxzobLkYCAJ7gB bErqrtvAvw5zk/7UqM6bXN4N16Z7ZsbOQ7luyPObwiRuqUzpNPBXpHrv47YYRpryKYAh lR6oIBdQshMsXiIafqjPJ/cPb/nXU6w5d8Ni4SnxDb0Wbd7/620Fzmf+SVTzGtMSOg2a HfLsrAW9ltMn/YLMypfZ8WI/1a9ORNJVMcPZXEWrAzUh/kbCMVrUNM7TC6EEJL1/Q8Jc 3tNEVfAxE5MMrAp78kRJRUrMuCLlGri9ZUGCZRnLmF16vbKPcEf48++frnM/wKy3iCJn YROA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=collabora.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id l19si986226oii.54.2020.02.26.03.52.14; Wed, 26 Feb 2020 03:52:27 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=collabora.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728360AbgBZLuI (ORCPT + 99 others); Wed, 26 Feb 2020 06:50:08 -0500 Received: from bhuna.collabora.co.uk ([46.235.227.227]:51662 "EHLO bhuna.collabora.co.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726408AbgBZLuI (ORCPT ); Wed, 26 Feb 2020 06:50:08 -0500 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 Cc: linux-kernel@vger.kernel.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 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.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