Re: [PATCH] Platform real time clock driver for Dallas 1511 chip.

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Andrew Sharp <andy.sharp@...>
Cc: <linux-kernel@...>, <p_gortmaker@...>, <anemo@...>, Alessandro Zummo <a.zummo@...>
Date: Tuesday, December 4, 2007 - 5:04 pm

On Tue, 4 Dec 2007 12:00:05 -0800
Andrew Sharp <andy.sharp@onstor.com> wrote:


Please remove the typedef and just use `enum ds1511reg' everywhere.


It's unusual (unique) to indent the function declaration by a single space
in this way.  Maybe an editor option which needs fixing?

Also, although there are good reasons to always put a newline after the
declaration of the return type, kernel code generally doesn't do that
except as a way of avoiding 80-col wraparound sometimes.

IOW, please use

static noinline void rtc_write(uint8_t val, uint32_t reg)
{


Why was this function declared noinline?



c99-style comments will generate checkpatch warnings.

Please run checkpatch.  It detects a lot of coding-style breakage in
this patch.


What's the story here?  This code is permanently disabled?


hm, that could be pretty obnoxious for some applications, I expect. 
They'll run veeeery sloooowly, and inconsistently slowly across different
values of CONFIG_HZ.  And the uninterruptible sleep will contribute to
system load average.

What's going on here?

Do other RTC drivers do things like this?


hm.  You appear to be a C precedence whizz ;)


--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: [PATCH] Platform real time clock driver for Dallas 1511 ..., Andrew Morton, (Tue Dec 4, 5:04 pm)