Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp1011833pxk; Thu, 10 Sep 2020 04:58:39 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwKL12DJ1wFiqhFI00qPdzxbkXLJS+v0WEfOhZC9l9nauoEaChbula8azbAjIxIwOwmrb6f X-Received: by 2002:a17:906:780f:: with SMTP id u15mr8859743ejm.259.1599739119240; Thu, 10 Sep 2020 04:58:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1599739119; cv=none; d=google.com; s=arc-20160816; b=HEwuRb6H+Bb63nTWLvHw3W3AbAr7pFmkWijUNnkYIdzI9YD6k9/LBkuYLEj8NJ1uXw lIAZxKWcTc6/2CV8SvHyRut1NfWXPqcN5KNeLTuiZcf1dCYbBd3++/3gx5sXu9F9LFUU AqE9in5uDG6gW3wO/YIvfDNDY0mtiRmI+8dJ9EYbXCqA3IZJ39azle34xBtF8ZEd1pz9 ScyIJ0MY8KWnSdOLt+Yb3pXgaQoPGf86eHzW6aWEoxkwuZTn/5GBZw2finWePd8Amsl5 uPMsHuCKyCVZOy3lG9LvWMCLD6VRIRcUceY9F1znTjZNRYJsgPiLFixY6k9cYHlTd9ok vtxQ== 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=OAIIi6uo3XgXFJ7QsLwLusqGAN4H6rcenY71bNI/1l8=; b=SGKdLBg2iuXzDDsbiWGcm2mOaWOeqiA/83jj4GBkgMz/vwIN3ayIEmvWFpFVvNAGzT jRfAa1S/drXWCqVuwBv8URTHUergoJAcMqZ3WCffeFXu1Pdlh3oSHiEquCqBeq0ePfYO R5VjRnEqi3vEyhM66a6Hhb+KvxLT+slL7CGJcTk7UJXj2Bmd6xFIrYQkCxjCuiPNJDUQ 0NjBsohU4y4h8m1kRI5SICDo7gWuOjG5ah8ovPhV5UyaBIzYnA5dbyeAYiCQOsOOeLku MyWRYR1diHQfyoJFIhJargX77ssHnzgGgNZaqwMQNW+CuXzQb6YokkTqACWfFDI4IkmH 6bIQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=rW+wPK6u; 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 i3si3603335eds.570.2020.09.10.04.58.16; Thu, 10 Sep 2020 04:58:39 -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=rW+wPK6u; 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 S1730410AbgIJLwS (ORCPT + 99 others); Thu, 10 Sep 2020 07:52:18 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59132 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729455AbgIJLsz (ORCPT ); Thu, 10 Sep 2020 07:48:55 -0400 Received: from mail-pg1-x541.google.com (mail-pg1-x541.google.com [IPv6:2607:f8b0:4864:20::541]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F3A6FC0617A0; Thu, 10 Sep 2020 04:35:11 -0700 (PDT) Received: by mail-pg1-x541.google.com with SMTP id j34so4088504pgi.7; Thu, 10 Sep 2020 04:35:11 -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=OAIIi6uo3XgXFJ7QsLwLusqGAN4H6rcenY71bNI/1l8=; b=rW+wPK6uNUbrUcprGE+bQuCpqDWnZ0VJbYkiOw/LceoiimtmO+K5zGaJ8VH0fntmp+ 60B98AoB2KqakAI4TCQ0uZ4WWLuPJehYgr5Srs+vOTsO7s8hRxHwTPM9ARbWajgphq2B eWF9fHapKu16Jsi6TEfaoFS4dpvFBS9QK41CJGk+o7RlAABDvo/dM9b4B650BS9FLS4p yMJaz5yYQL0WEuCDL8GAudTrpDIShQA3TuQLtjqRDVN0d9IrSXJcdxiN51NAOtaJEQnw oxKzVKa1VyeWniKn9nW3b/8r4kUc1kNt9Z6dWm93DAtQAozF65v8SL+LPP/lanfG6nC1 uJPg== 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=OAIIi6uo3XgXFJ7QsLwLusqGAN4H6rcenY71bNI/1l8=; b=AVRtOUlyEtkWC05Ly0x2EA/ZMpiF9mfyFgBbhgy6OabeH/qYVZS46eBG2J9AC5inPk x79tqJKgL/bl8QfbN7+XB/nLXQ/a8bRsDlU3bn+1cS+Whr+Y948kquUtpW2PieL/TMkL /q+A9RvrXJ8tmhxdoqZOMnHKaAFhPx9rXSYIio3FrgyR143GSML4x3CJdz1/dbCE0y2u 3YTa5+6TemGf88r1/7E7aMQqYkXz/DGPsE/TLt3bZxFeXWje+HsDWWAm1/dKWCvjpSr5 e8gd1EWNSt9a3ETSCw3Tkb8HtTPOBN7f1NbnYsXCdO4EfuyUC4PoCnhCkSVUZsP/Hqop Hxeg== X-Gm-Message-State: AOAM531VgFbtO40dx9PjEYnrxLbOd9r8Uurn+XvPBkfWbfluZqRVkIaq SvN1I7on697jT5TALTrHfacCfqwGMR1vM2zdA7o= X-Received: by 2002:a63:ec4c:: with SMTP id r12mr4042041pgj.74.1599737711469; Thu, 10 Sep 2020 04:35:11 -0700 (PDT) MIME-Version: 1.0 References: <1599474459-20853-1-git-send-email-gene.chen.richtek@gmail.com> <1599474459-20853-2-git-send-email-gene.chen.richtek@gmail.com> <20200910081814.GB28357@amd> In-Reply-To: <20200910081814.GB28357@amd> From: Andy Shevchenko Date: Thu, 10 Sep 2020 14:34:54 +0300 Message-ID: Subject: Re: [PATCH v3 1/2] leds: mt6360: Add LED driver for MT6360 To: Pavel Machek Cc: Gene Chen , Jacek Anaszewski , Rob Herring , Matthias Brugger , Dan Murphy , Linux LED Subsystem , devicetree , linux-arm Mailing List , "moderated list:ARM/Mediatek SoC support" , Linux Kernel Mailing List , Gene Chen , Wilma.Wu@mediatek.com, shufan_lee@richtek.com, cy_huang@richtek.com, benjamin.chao@mediatek.com 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, Sep 10, 2020 at 11:18 AM Pavel Machek wrote: ... > > > > +enum { > > > > + MT6360_LED_ISNK1 = 0, > > > > + MT6360_LED_ISNK2, > > > > + MT6360_LED_ISNK3, > > > > + MT6360_LED_ISNK4, > > > > + MT6360_LED_FLASH1, > > > > + MT6360_LED_FLASH2, > > > > > > > + MT6360_MAX_LEDS, > > > > > > No comma for terminator entry. > > > > > > > ACK > > Actually, that comma is fine. Its absence would be fine, too. It is slightly better not to have to prevent (theoretical) rebase or other similar issues when a new item can go behind the terminator. In such a case compiler can easily tell you if something is wrong. > > > > +}; ... > > > > +static const struct of_device_id __maybe_unused mt6360_led_of_id[] = { > > > > + { .compatible = "mediatek,mt6360-led", }, > > > > > > > + {}, > > > > > > No need comma. > > > > ACK > > It is also no hurting comma. Same explanation. It doesn't hurt per se, but its absence might serve a purpose. -- With Best Regards, Andy Shevchenko