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=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 88BFBC4BA0E for ; Wed, 26 Feb 2020 11:50:10 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 640C824687 for ; Wed, 26 Feb 2020 11:50:10 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728377AbgBZLuI (ORCPT ); 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