From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1031450AbeBOMxA (ORCPT ); Thu, 15 Feb 2018 07:53:00 -0500 Received: from szxga05-in.huawei.com ([45.249.212.191]:5242 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1030360AbeBOMw6 (ORCPT ); Thu, 15 Feb 2018 07:52:58 -0500 Subject: Re: [PATCH v13 7/9] ACPI: Translate the I/O range of non-MMIO devices before scanning To: Andy Shevchenko References: <1518543933-22456-1-git-send-email-john.garry@huawei.com> <1518543933-22456-8-git-send-email-john.garry@huawei.com> <20180214161635.GA13849@e107981-ln.cambridge.arm.com> <65185a4d-c712-4486-d713-3fa9de14e35d@huawei.com> CC: Lorenzo Pieralisi , "Rafael J. Wysocki" , Mika Westerberg , "Rafael J. Wysocki" , Hanjun Guo , Rob Herring , Bjorn Helgaas , "Arnd Bergmann" , Mark Rutland , Olof Johansson , Dann Frazier , Rob Herring , Joe Perches , Benjamin Herrenschmidt , , "Linux Kernel Mailing List" , ACPI Devel Maling List , Linuxarm , Corey Minyard , devicetree , Linux-Arch , Randy Dunlap From: John Garry Message-ID: Date: Thu, 15 Feb 2018 12:52:26 +0000 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.3.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset="utf-8"; format=flowed Content-Transfer-Encoding: 7bit X-Originating-IP: [10.202.227.238] X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 15/02/2018 12:22, Andy Shevchenko wrote: > On Thu, Feb 15, 2018 at 1:19 PM, John Garry wrote: > Hi Andy, >> +static const struct acpi_device_id indirect_io_hosts[] = { >> + {"HISI0191", 0}, /* HiSilicon LPC host */ >> + {}, > > Just a nit. > I noticed that I have this in the LLDD also. I think that this may be a force of habit. > It seems lately this happens more often than usual, I mean a comma in > the terminator line. > > If we remove it. we terminate not only at runtime, but at compile > time, which is slightly better. I grepped for "{}," in the drivers folder and it gives many results (I do accept that some are not sentinels): >grep -R "{}," * | tail watchdog/gef_wdt.c: {}, watchdog/asm9260_wdt.c: {}, watchdog/bcm2835_wdt.c: {}, watchdog/digicolor_wdt.c: {}, watchdog/bcm7038_wdt.c: {}, watchdog/ath79_wdt.c: {}, watchdog/riowd.c: {}, watchdog/sbsa_gwdt.c: {}, watchdog/sbsa_gwdt.c: {}, watchdog/bcm_kona_wdt.c: {}, Much appreciated, John