Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
linux
Commits
af91bc10
Commit
af91bc10
authored
Dec 15, 2002
by
Art Haas
Committed by
Linus Torvalds
Dec 15, 2002
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[PATCH] C99 initializers for drivers/char
parent
19415c8d
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
34 additions
and
34 deletions
+34
-34
drivers/char/drm/ffb_drv.c
drivers/char/drm/ffb_drv.c
+10
-10
drivers/char/ftape/zftape/zftape-init.c
drivers/char/ftape/zftape/zftape-init.c
+7
-7
drivers/char/mwave/mwavedd.c
drivers/char/mwave/mwavedd.c
+6
-6
drivers/char/rio/rio_linux.c
drivers/char/rio/rio_linux.c
+2
-2
drivers/char/watchdog/softdog.c
drivers/char/watchdog/softdog.c
+9
-9
No files found.
drivers/char/drm/ffb_drv.c
View file @
af91bc10
...
@@ -28,16 +28,16 @@
...
@@ -28,16 +28,16 @@
#define DRIVER_FOPS \
#define DRIVER_FOPS \
static struct file_operations DRM(fops) = { \
static struct file_operations DRM(fops) = { \
owner:
THIS_MODULE, \
.owner =
THIS_MODULE, \
open:
DRM(open), \
.open =
DRM(open), \
flush:
DRM(flush), \
.flush =
DRM(flush), \
release:
DRM(release), \
.release =
DRM(release), \
ioctl:
DRM(ioctl), \
.ioctl =
DRM(ioctl), \
mmap:
DRM(mmap), \
.mmap =
DRM(mmap), \
read:
DRM(read), \
.read =
DRM(read), \
fasync:
DRM(fasync), \
.fasync =
DRM(fasync), \
poll:
DRM(poll), \
.poll =
DRM(poll), \
get_unmapped_area:
ffb_get_unmapped_area, \
.get_unmapped_area =
ffb_get_unmapped_area, \
}
}
#define DRIVER_COUNT_CARDS() ffb_count_card_instances()
#define DRIVER_COUNT_CARDS() ffb_count_card_instances()
...
...
drivers/char/ftape/zftape/zftape-init.c
View file @
af91bc10
...
@@ -96,13 +96,13 @@ static ssize_t zft_write(struct file *fp, const char *buff,
...
@@ -96,13 +96,13 @@ static ssize_t zft_write(struct file *fp, const char *buff,
static
struct
file_operations
zft_cdev
=
static
struct
file_operations
zft_cdev
=
{
{
owner:
THIS_MODULE
,
.
owner
=
THIS_MODULE
,
read:
zft_read
,
.
read
=
zft_read
,
write:
zft_write
,
.
write
=
zft_write
,
ioctl:
zft_ioctl
,
.
ioctl
=
zft_ioctl
,
mmap:
zft_mmap
,
.
mmap
=
zft_mmap
,
open:
zft_open
,
.
open
=
zft_open
,
release:
zft_close
,
.
release
=
zft_close
,
};
};
/* Open floppy tape device
/* Open floppy tape device
...
...
drivers/char/mwave/mwavedd.c
View file @
af91bc10
...
@@ -429,12 +429,12 @@ static int register_serial_portandirq(unsigned int port, int irq)
...
@@ -429,12 +429,12 @@ static int register_serial_portandirq(unsigned int port, int irq)
#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,4,0)
#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,4,0)
static
struct
file_operations
mwave_fops
=
{
static
struct
file_operations
mwave_fops
=
{
owner:
THIS_MODULE
,
.
owner
=
THIS_MODULE
,
read:
mwave_read
,
.
read
=
mwave_read
,
write:
mwave_write
,
.
write
=
mwave_write
,
ioctl:
mwave_ioctl
,
.
ioctl
=
mwave_ioctl
,
open:
mwave_open
,
.
open
=
mwave_open
,
release:
mwave_close
.
release
=
mwave_close
};
};
#else
#else
static
struct
file_operations
mwave_fops
=
{
static
struct
file_operations
mwave_fops
=
{
...
...
drivers/char/rio/rio_linux.c
View file @
af91bc10
...
@@ -276,8 +276,8 @@ static struct real_driver rio_real_driver = {
...
@@ -276,8 +276,8 @@ static struct real_driver rio_real_driver = {
*/
*/
static
struct
file_operations
rio_fw_fops
=
{
static
struct
file_operations
rio_fw_fops
=
{
owner:
THIS_MODULE
,
.
owner
=
THIS_MODULE
,
ioctl:
rio_fw_ioctl
,
.
ioctl
=
rio_fw_ioctl
,
};
};
struct
miscdevice
rio_fw_device
=
{
struct
miscdevice
rio_fw_device
=
{
...
...
drivers/char/watchdog/softdog.c
View file @
af91bc10
...
@@ -139,7 +139,7 @@ static int softdog_ioctl(struct inode *inode, struct file *file,
...
@@ -139,7 +139,7 @@ static int softdog_ioctl(struct inode *inode, struct file *file,
unsigned
int
cmd
,
unsigned
long
arg
)
unsigned
int
cmd
,
unsigned
long
arg
)
{
{
static
struct
watchdog_info
ident
=
{
static
struct
watchdog_info
ident
=
{
identity:
"Software Watchdog"
,
.
identity
=
"Software Watchdog"
,
};
};
switch
(
cmd
)
{
switch
(
cmd
)
{
default:
default:
...
@@ -158,17 +158,17 @@ static int softdog_ioctl(struct inode *inode, struct file *file,
...
@@ -158,17 +158,17 @@ static int softdog_ioctl(struct inode *inode, struct file *file,
}
}
static
struct
file_operations
softdog_fops
=
{
static
struct
file_operations
softdog_fops
=
{
owner:
THIS_MODULE
,
.
owner
=
THIS_MODULE
,
write:
softdog_write
,
.
write
=
softdog_write
,
ioctl:
softdog_ioctl
,
.
ioctl
=
softdog_ioctl
,
open:
softdog_open
,
.
open
=
softdog_open
,
release:
softdog_release
,
.
release
=
softdog_release
,
};
};
static
struct
miscdevice
softdog_miscdev
=
{
static
struct
miscdevice
softdog_miscdev
=
{
minor:
WATCHDOG_MINOR
,
.
minor
=
WATCHDOG_MINOR
,
name:
"watchdog"
,
.
name
=
"watchdog"
,
fops:
&
softdog_fops
,
.
fops
=
&
softdog_fops
,
};
};
static
char
banner
[]
__initdata
=
KERN_INFO
"Software Watchdog Timer: 0.06, soft_margin: %d sec, nowayout: %d
\n
"
;
static
char
banner
[]
__initdata
=
KERN_INFO
"Software Watchdog Timer: 0.06, soft_margin: %d sec, nowayout: %d
\n
"
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment