projects
/
powerpc.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
[PATCH] mark struct file_operations const 4
[powerpc.git]
/
drivers
/
char
/
sonypi.c
diff --git
a/drivers/char/sonypi.c
b/drivers/char/sonypi.c
index
e19d485
..
17d54e1
100644
(file)
--- a/
drivers/char/sonypi.c
+++ b/
drivers/char/sonypi.c
@@
-765,7
+765,7
@@
static void sonypi_setbluetoothpower(u8 state)
sonypi_device.bluetooth_power = state;
}
sonypi_device.bluetooth_power = state;
}
-static void input_keyrelease(
void *data
)
+static void input_keyrelease(
struct work_struct *work
)
{
struct sonypi_keypress kp;
{
struct sonypi_keypress kp;
@@
-826,7
+826,7
@@
static void sonypi_report_input_event(u8 event)
}
/* Interrupt handler: some event is available */
}
/* Interrupt handler: some event is available */
-static irqreturn_t sonypi_irq(int irq, void *dev_id
, struct pt_regs *regs
)
+static irqreturn_t sonypi_irq(int irq, void *dev_id)
{
u8 v1, v2, event = 0;
int i, j;
{
u8 v1, v2, event = 0;
int i, j;
@@
-979,7
+979,7
@@
static ssize_t sonypi_misc_read(struct file *file, char __user *buf,
}
if (ret > 0) {
}
if (ret > 0) {
- struct inode *inode = file->f_dentry->d_inode;
+ struct inode *inode = file->f_
path.
dentry->d_inode;
inode->i_atime = current_fs_time(inode->i_sb);
}
inode->i_atime = current_fs_time(inode->i_sb);
}
@@
-1106,7
+1106,7
@@
static int sonypi_misc_ioctl(struct inode *ip, struct file *fp,
return ret;
}
return ret;
}
-static struct file_operations sonypi_misc_fops = {
+static
const
struct file_operations sonypi_misc_fops = {
.owner = THIS_MODULE,
.read = sonypi_misc_read,
.poll = sonypi_misc_poll,
.owner = THIS_MODULE,
.read = sonypi_misc_read,
.poll = sonypi_misc_poll,
@@
-1282,7
+1282,7
@@
static int __devinit sonypi_setup_irq(struct sonypi_device *dev,
while (irq_list->irq) {
if (!request_irq(irq_list->irq, sonypi_irq,
while (irq_list->irq) {
if (!request_irq(irq_list->irq, sonypi_irq,
-
SA_SHIRQ
, "sonypi", sonypi_irq)) {
+
IRQF_SHARED
, "sonypi", sonypi_irq)) {
dev->irq = irq_list->irq;
dev->bits = irq_list->bits;
return 0;
dev->irq = irq_list->irq;
dev->bits = irq_list->bits;
return 0;
@@
-1412,7
+1412,7
@@
static int __devinit sonypi_probe(struct platform_device *dev)
goto err_inpdev_unregister;
}
goto err_inpdev_unregister;
}
- INIT_WORK(&sonypi_device.input_work, input_keyrelease
, NULL
);
+ INIT_WORK(&sonypi_device.input_work, input_keyrelease);
}
sonypi_enable(0);
}
sonypi_enable(0);