From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753647Ab0IJHLl (ORCPT ); Fri, 10 Sep 2010 03:11:41 -0400 Received: from casper.infradead.org ([85.118.1.10]:37680 "EHLO casper.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752854Ab0IJHLk (ORCPT ); Fri, 10 Sep 2010 03:11:40 -0400 Subject: [PATCH] HPET: fix style problems From: Jaswinder Singh Rajput To: LKML , Clemens Ladisch , Andrew Morton Content-Type: text/plain; charset="UTF-8" Date: Fri, 10 Sep 2010 12:39:31 +0530 Message-ID: <1284102571.5280.2.camel@ht.satnam> Mime-Version: 1.0 X-Mailer: Evolution 2.30.1.2 (2.30.1.2-2.fc13) Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Fixed following style problems: WARNING: Use #include instead of WARNING: Use #include instead of ERROR: code indent should use tabs where possible ERROR: do not initialise statics to 0 or NULL Signed-off-by: Jaswinder Singh Rajput Cc: Clemens Ladisch Cc: Andrew Morton --- drivers/char/hpet.c | 20 ++++++++++---------- 1 files changed, 10 insertions(+), 10 deletions(-) diff --git a/drivers/char/hpet.c b/drivers/char/hpet.c index a0a1829..ebea5c8 100644 --- a/drivers/char/hpet.c +++ b/drivers/char/hpet.c @@ -31,12 +31,12 @@ #include #include #include +#include #include +#include #include -#include #include -#include #include #include @@ -79,13 +79,13 @@ static cycle_t read_hpet(struct clocksource *cs) } static struct clocksource clocksource_hpet = { - .name = "hpet", - .rating = 250, - .read = read_hpet, - .mask = CLOCKSOURCE_MASK(64), - .mult = 0, /* to be calculated */ - .shift = 10, - .flags = CLOCK_SOURCE_IS_CONTINUOUS, + .name = "hpet", + .rating = 250, + .read = read_hpet, + .mask = CLOCKSOURCE_MASK(64), + .mult = 0, /* to be calculated */ + .shift = 10, + .flags = CLOCK_SOURCE_IS_CONTINUOUS, }; static struct clocksource *hpet_clocksource; #endif @@ -781,7 +781,7 @@ int hpet_alloc(struct hpet_data *hdp) struct hpets *hpetp; size_t siz; struct hpet __iomem *hpet; - static struct hpets *last = NULL; + static struct hpets *last; unsigned long period; unsigned long long temp; u32 remainder; -- 1.7.2.2