Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp1569067pxa; Thu, 6 Aug 2020 10:28:51 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzhcZVYSWsUVN+2IJMiVvcFVDLoFWclOfh2OVc2IzsNwYR6oqp6hezQ8QbJwC+gmR59NE3a X-Received: by 2002:a17:906:2681:: with SMTP id t1mr5259714ejc.350.1596734931053; Thu, 06 Aug 2020 10:28:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1596734931; cv=none; d=google.com; s=arc-20160816; b=LjTLNpcoKXDrHuXlKuSJZe9aagi+6seUlGlh0z3wKBd1PTixBQAh9Sru1tJ8OWO80J FUgu/WdX946+k9Vy70NtV2wIpg/V9i5oFmw+qvIL02y+9tO3gYIqbK1wRON2UNZUExA9 L4jkbhUuhpcbVPDyTDGsJ5Y31op58oWxBTP9+/opY5dx5snwFCxjpoIpb5ste4ovmV+/ vwMZAfdGkzhuEShBNiAkeW1e0cr84vE2fbgEgjJhpGfN2x8pjFwbqspTlfHcj0QeKdbI 2L5IUnccrzSsoN3CHDrKO47CEx5ogdhZ14yYCmS6CD3R72bY7Lv6XICiBfHmZpSPrlv8 ULzQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=9UsHAX7esgjtVzNUCEqqvqu86wCp66quILvQY7iEL8g=; b=hegG3RUd619P1P5TOWqC3igITaI7OvisEW2ITuhsybMEmPXKwWg3V+8GSQkBijWUHb BiLrzHHHh+JSc6Bj5PRHlFd1RlrkE9MB7VNe979GysQvmi7DuXtWoIdkNU2gCE/FHav2 9othEA7PPbqSSkTtSniOLE700RoFrAY7wNZGylrGm27yKYMKnYcK+/OLcec4P2uXdLL+ FwrySHx1QgS2o79X0ZICPurIqksXONNadjw5lqsR+tOE65P4U8kj7tap5C5WSdMIFDYR cBSMOd8FnjFKNzYrkwdtOoplg2bud6MckznkJe20sVjdsPFjmy0sPBh4ATenFOGxIsab b/zg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@baylibre-com.20150623.gappssmtp.com header.s=20150623 header.b=DyT6FG8C; 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 g10si3468487ejo.375.2020.08.06.10.28.28; Thu, 06 Aug 2020 10:28:51 -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=pass header.i=@baylibre-com.20150623.gappssmtp.com header.s=20150623 header.b=DyT6FG8C; 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 S1729990AbgHFR04 (ORCPT + 99 others); Thu, 6 Aug 2020 13:26:56 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44992 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729403AbgHFRBx (ORCPT ); Thu, 6 Aug 2020 13:01:53 -0400 Received: from mail-qk1-x742.google.com (mail-qk1-x742.google.com [IPv6:2607:f8b0:4864:20::742]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2568CC00214F for ; Thu, 6 Aug 2020 08:54:06 -0700 (PDT) Received: by mail-qk1-x742.google.com with SMTP id l6so45358146qkc.6 for ; Thu, 06 Aug 2020 08:54:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=9UsHAX7esgjtVzNUCEqqvqu86wCp66quILvQY7iEL8g=; b=DyT6FG8ChV01l/RE876rDNuC6j5DZJjP1C4cM04Su+qQP/+5Fv7Ee/cT/IS1nBx360 Pv5BJ+oxTlFo/nboo9WeCzc9ezk3F9gAj3slg5OXaDJWKtg8l5CEVDSnTnJ9QvdXVnN6 CoPWeXdDnTCkJXuSjv/FC7NntuHtLLFNd9taIhYEFs+8Ice71Sv/a4WJ62TJNP+AEcD2 CCuGrbnxz0ywxNZylEFrKVP5V/KajDbma/cMnWfiLLuInEgosYYRmNviv9apqXpN/QnZ 7qsJyIt0ydS6C4ytPStPVKjRrHh7ed7LPCduQgkT0aUJKGY2nLeKYN6B703T1+qSmADU LRWA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=9UsHAX7esgjtVzNUCEqqvqu86wCp66quILvQY7iEL8g=; b=pjtNvlsEz4pjOfMIOWGhKGfrWt9NH9eek3ttEPNQkVu6Gr7zEbAJer8qulSsX/4//q g0leiyOcR5bxgYJ1b8gbCU221Sm3dkjEGJ2eSZUWnZ/Y1CTxqI9Yt+Hf0G7Iyc3PE1LL MMdHYG/YaZkmnT6hFN813AWKNpNYxhRz424JCNN5np/JKkbc/tDcCDrXigqDLDd884du Jhy8W1JJfFnWysBmh3z1yrMhlJ72S5lZatb1M3YUomjNbi2QBUV9/pbM5Hrd6o8PYi0l hCcP8V1ypLXODltpsCDo+t3nD/viFczTTLO4o7Db1Q/8I5e6FBanurtRwro7EIGMdSKA ieug== X-Gm-Message-State: AOAM5329FtWZUVIiCTiGcEk8MmX42LpuJcWHukA58t95P7d7zVL1rKXa Jz5MhXDEyaXDPmQDlGUyK8m2f9Lxid5B6SNwql/qcA== X-Received: by 2002:a37:a495:: with SMTP id n143mr9203612qke.330.1596729244782; Thu, 06 Aug 2020 08:54:04 -0700 (PDT) MIME-Version: 1.0 References: <20200725041955.9985-1-warthog618@gmail.com> <20200725041955.9985-3-warthog618@gmail.com> <20200805051853.GA122005@sol> <20200806011513.GC11890@sol> In-Reply-To: <20200806011513.GC11890@sol> From: Bartosz Golaszewski Date: Thu, 6 Aug 2020 17:53:54 +0200 Message-ID: Subject: Re: [PATCH v2 02/18] gpio: uapi: define uAPI v2 To: Kent Gibson Cc: LKML , linux-gpio , Linus Walleij Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Aug 6, 2020 at 3:15 AM Kent Gibson wrote: > > On Wed, Aug 05, 2020 at 01:18:53PM +0800, Kent Gibson wrote: > > On Tue, Aug 04, 2020 at 07:42:34PM +0200, Bartosz Golaszewski wrote: > > > On Sat, Jul 25, 2020 at 6:20 AM Kent Gibson wrote: > > [snip] > > > > > config, info, info_changed and event structs receive updated versions, > > > > and the first three new ioctls. > > > > > > > > Signed-off-by: Kent Gibson > > > > --- > > > > > > Hi Kent, > > > > > > Thanks a lot for your work on this. Please see comments below. > > > > > > One thing I'd change globally for better readability is to have all > > > new symbols marked as v2 - even if they have no counterparts in v1. I > > > know libgpiod will wrap it all anyway but I think it's still a good > > > way to make our work in user-space easier. > > > > > > > Fair enough. Oh joy. > > > > Given that the intent is to highlight that the symbols are related to the > v2 of the GPIO uAPI, and not the second version of a particular type, it > makes more sense to me that the v2 is placed adjacent to the GPIO in the > name. e.g. gpioline_flag_v2 would become gpiov2line_flag. > > Does that work for you? > Yes, except that gpiov2line is a terrible prefix. Perhaps we should make that into gpiov2_line_flag and same for all others? Maybe even gpio_v2_line_flag if that doesn't make the symbols too long/too hard to read. Bartosz