ppdev: add missing blank line
kernel coding style recommends a blank line after varaiable declaration. Signed-off-by: Sudip Mukherjee <sudip@vectorindia.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
d85c1a2d15
commit
27f3b8a3bf
|
@ -109,6 +109,7 @@ static DEFINE_MUTEX(pp_do_mutex);
|
||||||
static inline void pp_enable_irq(struct pp_struct *pp)
|
static inline void pp_enable_irq(struct pp_struct *pp)
|
||||||
{
|
{
|
||||||
struct parport *port = pp->pdev->port;
|
struct parport *port = pp->pdev->port;
|
||||||
|
|
||||||
port->ops->enable_irq(port);
|
port->ops->enable_irq(port);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -368,6 +369,7 @@ static int pp_do_ioctl(struct file *file, unsigned int cmd, unsigned long arg)
|
||||||
/* Deferred device registration. */
|
/* Deferred device registration. */
|
||||||
if (!pp->pdev) {
|
if (!pp->pdev) {
|
||||||
int err = register_device(minor, pp);
|
int err = register_device(minor, pp);
|
||||||
|
|
||||||
if (err) {
|
if (err) {
|
||||||
return err;
|
return err;
|
||||||
}
|
}
|
||||||
|
@ -412,6 +414,7 @@ static int pp_do_ioctl(struct file *file, unsigned int cmd, unsigned long arg)
|
||||||
case PPSETMODE:
|
case PPSETMODE:
|
||||||
{
|
{
|
||||||
int mode;
|
int mode;
|
||||||
|
|
||||||
if (copy_from_user(&mode, argp, sizeof(mode)))
|
if (copy_from_user(&mode, argp, sizeof(mode)))
|
||||||
return -EFAULT;
|
return -EFAULT;
|
||||||
/* FIXME: validate mode */
|
/* FIXME: validate mode */
|
||||||
|
@ -442,6 +445,7 @@ static int pp_do_ioctl(struct file *file, unsigned int cmd, unsigned long arg)
|
||||||
case PPSETPHASE:
|
case PPSETPHASE:
|
||||||
{
|
{
|
||||||
int phase;
|
int phase;
|
||||||
|
|
||||||
if (copy_from_user(&phase, argp, sizeof(phase))) {
|
if (copy_from_user(&phase, argp, sizeof(phase))) {
|
||||||
return -EFAULT;
|
return -EFAULT;
|
||||||
}
|
}
|
||||||
|
@ -665,6 +669,7 @@ static int pp_do_ioctl(struct file *file, unsigned int cmd, unsigned long arg)
|
||||||
static long pp_ioctl(struct file *file, unsigned int cmd, unsigned long arg)
|
static long pp_ioctl(struct file *file, unsigned int cmd, unsigned long arg)
|
||||||
{
|
{
|
||||||
long ret;
|
long ret;
|
||||||
|
|
||||||
mutex_lock(&pp_do_mutex);
|
mutex_lock(&pp_do_mutex);
|
||||||
ret = pp_do_ioctl(file, cmd, arg);
|
ret = pp_do_ioctl(file, cmd, arg);
|
||||||
mutex_unlock(&pp_do_mutex);
|
mutex_unlock(&pp_do_mutex);
|
||||||
|
@ -755,6 +760,7 @@ static int pp_release(struct inode *inode, struct file *file)
|
||||||
|
|
||||||
if (pp->pdev) {
|
if (pp->pdev) {
|
||||||
const char *name = pp->pdev->name;
|
const char *name = pp->pdev->name;
|
||||||
|
|
||||||
parport_unregister_device(pp->pdev);
|
parport_unregister_device(pp->pdev);
|
||||||
kfree(name);
|
kfree(name);
|
||||||
pp->pdev = NULL;
|
pp->pdev = NULL;
|
||||||
|
|
Loading…
Reference in New Issue