mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-15 15:15:47 +00:00
CRIS v10: Cleanup rtc.h
- Change RTC_VLOW_RD -> RTC_VL_READ, RTC_VLOW_SET -> RTC_VL_CLR - Whitespace and formatting.
This commit is contained in:
parent
34a8e501fe
commit
d8468472e4
1 changed files with 21 additions and 20 deletions
|
@ -1,10 +1,7 @@
|
|||
/* $Id: rtc.h,v 1.7 2002/11/04 07:32:09 starvik Exp $ */
|
||||
|
||||
#ifndef __RTC_H__
|
||||
#define __RTC_H__
|
||||
|
||||
|
||||
|
||||
#ifdef CONFIG_ETRAX_DS1302
|
||||
/* Dallas DS1302 clock/calendar register numbers. */
|
||||
# define RTC_SECONDS 0
|
||||
|
@ -96,11 +93,15 @@ struct rtc_time {
|
|||
|
||||
/* ioctl() calls that are permitted to the /dev/rtc interface. */
|
||||
#define RTC_MAGIC 'p'
|
||||
#define RTC_RD_TIME _IOR(RTC_MAGIC, 0x09, struct rtc_time) /* Read RTC time. */
|
||||
#define RTC_SET_TIME _IOW(RTC_MAGIC, 0x0a, struct rtc_time) /* Set RTC time. */
|
||||
/* Read RTC time. */
|
||||
#define RTC_RD_TIME _IOR(RTC_MAGIC, 0x09, struct rtc_time)
|
||||
/* Set RTC time. */
|
||||
#define RTC_SET_TIME _IOW(RTC_MAGIC, 0x0a, struct rtc_time)
|
||||
#define RTC_SET_CHARGE _IOW(RTC_MAGIC, 0x0b, int)
|
||||
#define RTC_VLOW_RD _IOR(RTC_MAGIC, 0x11, int) /* Voltage Low detector */
|
||||
#define RTC_VLOW_SET _IO(RTC_MAGIC, 0x12) /* Clear voltage low information */
|
||||
#define RTC_MAX_IOCTL 0x12
|
||||
/* Voltage low detector */
|
||||
#define RTC_VL_READ _IOR(RTC_MAGIC, 0x13, int)
|
||||
/* Clear voltage low information */
|
||||
#define RTC_VL_CLR _IO(RTC_MAGIC, 0x14)
|
||||
#define RTC_MAX_IOCTL 0x14
|
||||
|
||||
#endif /* __RTC_H__ */
|
||||
|
|
Loading…
Reference in a new issue