Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 8ca445df authored by Adrian Bunk's avatar Adrian Bunk Committed by Linus Torvalds
Browse files

[PATCH] drivers/isdn/gigaset/common.c: small cleanups



- make the needlessly global gigaset_get_cs_by_tty() static
- remove the unused EXPORT_SYMBOL_GPL(gigaset_debugdrivers)

Signed-off-by: default avatarAdrian Bunk <bunk@stusta.de>
Acked-by: default avatarTilman Schmidt <tilman@imap.cc>
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent 69049cc8
Loading
Loading
Loading
Loading
+8 −9
Original line number Original line Diff line number Diff line
@@ -1037,16 +1037,8 @@ void gigaset_debugdrivers(void)
	}
	}
	spin_unlock_irqrestore(&driver_lock, flags);
	spin_unlock_irqrestore(&driver_lock, flags);
}
}
EXPORT_SYMBOL_GPL(gigaset_debugdrivers);


struct cardstate *gigaset_get_cs_by_tty(struct tty_struct *tty)
static struct cardstate *gigaset_get_cs_by_minor(unsigned minor)
{
	if (tty->index < 0 || tty->index >= tty->driver->num)
		return NULL;
	return gigaset_get_cs_by_minor(tty->index + tty->driver->minor_start);
}

struct cardstate *gigaset_get_cs_by_minor(unsigned minor)
{
{
	unsigned long flags;
	unsigned long flags;
	static struct cardstate *ret = NULL;
	static struct cardstate *ret = NULL;
@@ -1069,6 +1061,13 @@ struct cardstate *gigaset_get_cs_by_minor(unsigned minor)
	return ret;
	return ret;
}
}


struct cardstate *gigaset_get_cs_by_tty(struct tty_struct *tty)
{
	if (tty->index < 0 || tty->index >= tty->driver->num)
		return NULL;
	return gigaset_get_cs_by_minor(tty->index + tty->driver->minor_start);
}

void gigaset_freedriver(struct gigaset_driver *drv)
void gigaset_freedriver(struct gigaset_driver *drv)
{
{
	unsigned long flags;
	unsigned long flags;
+0 −1
Original line number Original line Diff line number Diff line
@@ -776,7 +776,6 @@ struct gigaset_driver *gigaset_initdriver(unsigned minor, unsigned minors,
/* Deallocate driver structure. */
/* Deallocate driver structure. */
void gigaset_freedriver(struct gigaset_driver *drv);
void gigaset_freedriver(struct gigaset_driver *drv);
void gigaset_debugdrivers(void);
void gigaset_debugdrivers(void);
struct cardstate *gigaset_get_cs_by_minor(unsigned minor);
struct cardstate *gigaset_get_cs_by_tty(struct tty_struct *tty);
struct cardstate *gigaset_get_cs_by_tty(struct tty_struct *tty);
struct cardstate *gigaset_get_cs_by_id(int id);
struct cardstate *gigaset_get_cs_by_id(int id);