Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
leds-asic3.c File Reference
#include <linux/kernel.h>
#include <linux/init.h>
#include <linux/platform_device.h>
#include <linux/leds.h>
#include <linux/slab.h>
#include <linux/mfd/asic3.h>
#include <linux/mfd/core.h>
#include <linux/module.h>

Go to the source code of this file.

Macros

#define MS_TO_CLK(ms)   DIV_ROUND_CLOSEST(((ms)*1024), 32000)
 
#define CLK_TO_MS(clk)   (((clk)*32000)/1024)
 
#define MAX_CLK   4000 /* Fits into 12-bit Time registers */
 
#define MAX_MS   CLK_TO_MS(MAX_CLK)
 

Functions

 module_platform_driver (asic3_led_driver)
 
 MODULE_AUTHOR ("Paul Parsons <[email protected]>")
 
 MODULE_DESCRIPTION ("HTC ASIC3 LED driver")
 
 MODULE_LICENSE ("GPL")
 
 MODULE_ALIAS ("platform:leds-asic3")
 

Macro Definition Documentation

#define CLK_TO_MS (   clk)    (((clk)*32000)/1024)

Definition at line 30 of file leds-asic3.c.

#define MAX_CLK   4000 /* Fits into 12-bit Time registers */

Definition at line 31 of file leds-asic3.c.

#define MAX_MS   CLK_TO_MS(MAX_CLK)

Definition at line 32 of file leds-asic3.c.

#define MS_TO_CLK (   ms)    DIV_ROUND_CLOSEST(((ms)*1024), 32000)

Definition at line 29 of file leds-asic3.c.

Function Documentation

MODULE_ALIAS ( "platform:leds-asic3 )
MODULE_AUTHOR ( "Paul Parsons <[email protected]>"  )
MODULE_DESCRIPTION ( "HTC ASIC3 LED driver )
MODULE_LICENSE ( "GPL"  )
module_platform_driver ( asic3_led_driver  )