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

Commit 78c74a5f authored by Sergio Paracuellos's avatar Sergio Paracuellos Committed by Greg Kroah-Hartman
Browse files

staging: ks7010: move MODULE_DEVICE_TABLE related code



This commit moves MODULE_DEVICE_TABLE related code to the end of
the file. This is not necessary at all but moving it just before
its use improves readability.

Signed-off-by: default avatarSergio Paracuellos <sergio.paracuellos@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 7570d757
Loading
Loading
Loading
Loading
+7 −7
Original line number Original line Diff line number Diff line
@@ -101,13 +101,6 @@ enum gen_com_reg_b {


#define KS7010_IO_BLOCK_SIZE 512
#define KS7010_IO_BLOCK_SIZE 512


static const struct sdio_device_id ks7010_sdio_ids[] = {
	{SDIO_DEVICE(SDIO_VENDOR_ID_KS_CODE_A, SDIO_DEVICE_ID_KS_7010)},
	{SDIO_DEVICE(SDIO_VENDOR_ID_KS_CODE_B, SDIO_DEVICE_ID_KS_7010)},
	{ /* all zero */ }
};
MODULE_DEVICE_TABLE(sdio, ks7010_sdio_ids);

static inline void inc_txqhead(struct ks_wlan_private *priv)
static inline void inc_txqhead(struct ks_wlan_private *priv)
{
{
	priv->tx_dev.qhead = (priv->tx_dev.qhead + 1) % TX_DEVICE_BUFF_SIZE;
	priv->tx_dev.qhead = (priv->tx_dev.qhead + 1) % TX_DEVICE_BUFF_SIZE;
@@ -1153,6 +1146,13 @@ static void ks7010_sdio_remove(struct sdio_func *func)
	kfree(card);
	kfree(card);
}
}


static const struct sdio_device_id ks7010_sdio_ids[] = {
	{SDIO_DEVICE(SDIO_VENDOR_ID_KS_CODE_A, SDIO_DEVICE_ID_KS_7010)},
	{SDIO_DEVICE(SDIO_VENDOR_ID_KS_CODE_B, SDIO_DEVICE_ID_KS_7010)},
	{ /* all zero */ }
};
MODULE_DEVICE_TABLE(sdio, ks7010_sdio_ids);

static struct sdio_driver ks7010_sdio_driver = {
static struct sdio_driver ks7010_sdio_driver = {
	.name = "ks7010_sdio",
	.name = "ks7010_sdio",
	.id_table = ks7010_sdio_ids,
	.id_table = ks7010_sdio_ids,