Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp3203660pxk; Mon, 5 Oct 2020 04:03:43 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwRi4b+rafT5cZqJZ3vQ4vKMScSYY+glTa35/4NK1cYtGSowwrMhHV/NPEc5GXoXsUtkyJk X-Received: by 2002:aa7:d1cc:: with SMTP id g12mr10353134edp.195.1601895823014; Mon, 05 Oct 2020 04:03:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1601895823; cv=none; d=google.com; s=arc-20160816; b=ZWKZ9XCYJbczDF15nOiTrSkMBVYy2pu+5ggSIRkMuxOyeZWVC9gDPAEx3aWj3IiQfq 8I1NCJPyjIIpRL8b9m25vDOyI7wgtVy13mCW+4ZWnAvU32TAXe43YpbrHlNGj+5WFiYP r/D9MDf9/Ai9hzoi4JNrSjH4SDNoDdZ84DlyxPONtJOPcmVAgs0Rpc5F/T7E8mY/Px0b t/rXYvyjy9bXpx8wq1oKnyKmB7YnDxm8I9iIV1WOlIi89Z5dAsTRySZXuQdproYlPjMX tUuLF29cPHxNA2n3dowrCyPPOycWEb4k8T1a+1lPCKZmvvWOn6/wFyLNCOp76qqdR/4m 1BCg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=Osp4/+N3+YZvrvl/ejBqgXdbKyrkqPFZQidK9cO7Oxk=; b=JdBzfIEAFLhkeBwBVv3hOdU03ujoAskILOaTxfp8lX0IvTfVmLsg7gdrTtUD63U2wO bTydjfp8rnjjJgJ4NCJpQDwcuSutl7ZHMH4HDEmdFulaN9l5e0zsfUSB6uD/ASEV/Tj/ b2R+BJskUZVGMx/HMgaC8C2I1pO3ki6T0FBasCy2ZVDOebeCTxM9/QFLgJGqgUIZjLfO R4Ievx6Uz1XZbeXFA5CjMtl/237VQzki5+sNO2yMtRAQFUbxj34uMLm21yvDTpDklmEd YlLZXTBmY9PYB9C2AGlo1cPNYJsNrcFCL6Twk0XQegtxOMO6WPp9Mu1s8ig39Q6IRrmS fJZw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=WRoSNdtT; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id t25si6651139ejr.282.2020.10.05.04.03.20; Mon, 05 Oct 2020 04:03:42 -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=@gmail.com header.s=20161025 header.b=WRoSNdtT; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726559AbgJELBq (ORCPT + 99 others); Mon, 5 Oct 2020 07:01:46 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35466 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725891AbgJELBl (ORCPT ); Mon, 5 Oct 2020 07:01:41 -0400 Received: from mail-pf1-x443.google.com (mail-pf1-x443.google.com [IPv6:2607:f8b0:4864:20::443]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 75342C0613CE; Mon, 5 Oct 2020 04:01:41 -0700 (PDT) Received: by mail-pf1-x443.google.com with SMTP id q123so6638859pfb.0; Mon, 05 Oct 2020 04:01:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=Osp4/+N3+YZvrvl/ejBqgXdbKyrkqPFZQidK9cO7Oxk=; b=WRoSNdtTfzjD/kqjh2kjdQRbaWr1jP83/UEn/n7nSlnuTQXql8dU7ugZLB8t6zIxnJ u1rJdAkbDi5c9UmyqH3I28xE2fIzPrGV7SAanUo+fuTacJ8zpOw0AQ+i3J6ID6OFkr1c SF8FUJEz7hoNsKRgmrzDDLUzTi25wcl3ySCI60uxabclopNKT4IyfccJQmYnV0vvM13u loQ2ToM1skwI51AGxPdp7tW6JWbr6DtrEwUU5Quvfi+mBCtdwa7H0jgSilLrmN17/arP CyFSU1vYICnLdzByooF/qScorreRu+3S/6CD4LAlBEZpxdZhCgAuhtP3qMNz58tvt1w9 hhYQ== 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=Osp4/+N3+YZvrvl/ejBqgXdbKyrkqPFZQidK9cO7Oxk=; b=juv+pX1pfPN6HyUnxOneKvkFjakd8IWEqbzy9TtmlSKtFI/zgJ8UWhvxqO9rM6LWiq 6+zJ/PF8Oz3sWv/kjxcQtMA1lRHHGnjbQz/STEtO2l0/YEDbnFXF/XFROlN9Q/OtYDG9 L1OTFTJJ697GNdW1TpQllecKLqpGVOBjBuWHXyYGD7uawLFurYkDLe2EvFxGopYRTBXL FsluxvILN+6NzWnZ+YhLdRrnB1KXK05StCZeCgMhC15tIcxezkv1o1tfM+rSH2jQQnRx T5lZsnj1bxG+4k0Y6go08fZbP8EpzfToIqI1P7cB8M5T/YUtJShdAMXiFlrwtPwRh8I9 U+ng== X-Gm-Message-State: AOAM533SbdDTA4qhyZWQDOKW7mZCTNot3GmOqPsD6pZT9mIJlIKzlGyd 4qoERxQuuDub8K9A7T5HQIrQb6h8VvjfzY61RkQ= X-Received: by 2002:aa7:9201:0:b029:13e:d13d:a10c with SMTP id 1-20020aa792010000b029013ed13da10cmr7228230pfo.40.1601895700982; Mon, 05 Oct 2020 04:01:40 -0700 (PDT) MIME-Version: 1.0 References: <20201005070329.21055-1-warthog618@gmail.com> <20201005070329.21055-6-warthog618@gmail.com> In-Reply-To: <20201005070329.21055-6-warthog618@gmail.com> From: Andy Shevchenko Date: Mon, 5 Oct 2020 14:01:22 +0300 Message-ID: Subject: Re: [PATCH 5/5] gpio: uapi: clarify the meaning of 'empty' char arrays To: Kent Gibson Cc: Linux Kernel Mailing List , "open list:GPIO SUBSYSTEM" , Bartosz Golaszewski , Linus Walleij Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Oct 5, 2020 at 10:07 AM Kent Gibson wrote: > > Clarify that a char array containing a string is considered 'empty' if > the first character is the null terminator. The remaining characters > are not relevant to this determination. > * @label: a functional name for this GPIO chip, such as a product > - * number, may be empty > + * number, may be empty (i.e. label[0] == '\0') I would rather put it like "...may be empty string (i.e. label == "")" And so on for the rest. -- With Best Regards, Andy Shevchenko