Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752733AbbBJBgR (ORCPT ); Mon, 9 Feb 2015 20:36:17 -0500 Received: from mail-wg0-f53.google.com ([74.125.82.53]:35847 "EHLO mail-wg0-f53.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751096AbbBJBgP (ORCPT ); Mon, 9 Feb 2015 20:36:15 -0500 MIME-Version: 1.0 In-Reply-To: <1423516546.2933.25.camel@perches.com> References: <1423516546.2933.25.camel@perches.com> From: Rob Herring Date: Mon, 9 Feb 2015 19:35:54 -0600 Message-ID: Subject: Re: [trivial PATCH] mod_devicetable.h: Make the definition of struct of_device_id easier to find To: Joe Perches Cc: LKML , Grant Likely , Rob Herring , Andrew Morton , Jeff Mahoney Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1621 Lines: 47 On Mon, Feb 9, 2015 at 3:15 PM, Joe Perches wrote: > Move the open brace so the definition matches the more > common kernel style. This makes grep a bit easier. I've got the same fix in -next for 3.20 already: commit 851c63e3b381fdbf5aca1a797f37d8606b5588d2 Author: Daniel Thompson Date: Mon Jan 5 15:43:39 2015 +0000 of: Fix brace position for struct of_device_id definition Currently it is not easy to grep for the definition of struct of_device_id. This is trivially fixed by moving the brace to the right place. Signed-off-by: Daniel Thompson Cc: Grant Likely Cc: Rob Herring Signed-off-by: Rob Herring > > Signed-off-by: Joe Perches > --- > include/linux/mod_devicetable.h | 3 +-- > 1 file changed, 1 insertion(+), 2 deletions(-) > > diff --git a/include/linux/mod_devicetable.h b/include/linux/mod_devicetable.h > index 470a240..2e75ab0 100644 > --- a/include/linux/mod_devicetable.h > +++ b/include/linux/mod_devicetable.h > @@ -220,8 +220,7 @@ struct serio_device_id { > /* > * Struct used for matching a device > */ > -struct of_device_id > -{ > +struct of_device_id { > char name[32]; > char type[32]; > char compatible[128]; > > -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/