lkml.org 
[lkml]   [2015]   [Mar]   [16]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
SubjectRe: [PATCH] leds: Add arbitrary pattern trigger
Hi!

I'd really return error if we can't parse user's input.

Small spelling fixes:

--- drivers/leds/trigger/ledtrig-pattern.c~ 2015-03-16 12:07:06.897408622 +0100
+++ drivers/leds/trigger/ledtrig-pattern.c 2015-03-16 13:08:25.801864534 +0100
@@ -38,7 +38,7 @@
int nsteps; /* Number of steps */
int repeat; /* < 0 means repeat indefinitely */
struct timer_list timer; /* Used for scheduling updates to
- the led brightness */
+ the LED brightness */
};

#define MAX_NSTEPS (PAGE_SIZE/4)
@@ -84,7 +84,7 @@

/*
* is_sane : pattern checking.
- * A pattern satisfaying these three conditions is reported as sane :
+ * A pattern satisfying these three conditions is reported as sane :
* - At least two steps
* - At least one step with time >= UPDATE_INTERVAL
* - At least two steps with differing brightnesses

--
(english) http://www.livejournal.com/~pavelmachek
(cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html


\
 
 \ /
  Last update: 2015-03-16 13:41    [W:1.000 / U:0.004 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site