Thread (51 messages) 51 messages, 8 authors, 2013-06-24
STALE4743d

[PATCH 08/15] pwm: Add new pwm-samsung driver

From: Tomasz Figa <hidden>
Date: 2013-06-18 18:13:51
Also in: linux-pwm, linux-samsung-soc

On Wednesday 19 of June 2013 03:06:31 Kukjin Kim wrote:
On 06/19/13 02:59, Tomasz Figa wrote:
quoted
Hi Thierry,
[...]
quoted
quoted
quoted
+static void pwm_samsung_set_divisor(struct samsung_pwm_chip *pwm,
+					unsigned int channel, u8 divisor)
Nit: please align arguments on subsequent lines with the first
argument
of the first line. There's many more of these but I haven't mentioned
them all explicitly.
Hmm, I'm addressing all your comments that aren't addressed yet in v2
at the moment and I'm wondering if this is really the correct way of
breaking function headers...
static void pwm_samsung_set_divisor(struct samsung_pwm_chip *pwm,
				    unsigned int channel, u8 divisor)


I also would preferred to use above style :)
Personally I find it looking better as well, but this is about being 
compliant with kernel coding style guidelines (which also says that 
indentation should be done using tabs). Please correct my understanding of 
the quote below if it is incorrect.

Best regards,
Tomasz
- Kukjin
quoted
According to Documentation/CodingStyle:

/* Quotation starts */
Statements longer than 80 columns will be broken into sensible chunks,
unless exceeding 80 columns significantly increases readability and
does not hide information. Descendants are always substantially
shorter than the parent and are placed substantially to the right.
The same applies to function headers with a long argument list.
However, never break user- visible strings such as printk messages,
because that breaks the ability to grep for them.
/* Quotation ends */

Do I understand this incorrectly or does the above fragment state that
broken lines must be aligned to the right?

Best regards,
Tomasz
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help