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

Commit a3b0b566 authored by Franky Lin's avatar Franky Lin Committed by Greg Kroah-Hartman
Browse files

staging: brcm80211: remove fullmac module_param for intr/poll mode



Use constant for interrupt/polling mode configuration.

Reviewed-by: default avatarArend van Spriel <arend@broadcom.com>
Reviewed-by: default avatarRoland Vossen <rvossen@broadcom.com>
Reviewed-by: default avatarPieter-Paul Giesberts <pieterpg@broadcom.com>
Signed-off-by: default avatarArend van Spriel <arend@broadcom.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent 019f45f2
Loading
Loading
Loading
Loading
+2 −10
Original line number Original line Diff line number Diff line
@@ -725,14 +725,6 @@ module_param(brcmf_dpc_prio, int, 0);


#define SDIO_DRIVE_STRENGTH	6	/* in milliamps */
#define SDIO_DRIVE_STRENGTH	6	/* in milliamps */


/* Use polling */
uint brcmf_poll;
module_param(brcmf_poll, uint, 0);

/* Use interrupts */
uint brcmf_intr = true;
module_param(brcmf_intr, uint, 0);

#define RETRYCHAN(chan) ((chan) == SDPCM_EVENT_CHANNEL)
#define RETRYCHAN(chan) ((chan) == SDPCM_EVENT_CHANNEL)


/* Retry count for register access failures */
/* Retry count for register access failures */
@@ -4324,8 +4316,8 @@ brcmf_sdbrcm_probe_attach(struct brcmf_bus *bus, u32 regsva)
				    BRCMF_SDALIGN);
				    BRCMF_SDALIGN);


	/* Set the poll and/or interrupt flags */
	/* Set the poll and/or interrupt flags */
	bus->intr = (bool) brcmf_intr;
	bus->intr = true;
	bus->poll = (bool) brcmf_poll;
	bus->poll = false;
	if (bus->poll)
	if (bus->poll)
		bus->pollrate = 1;
		bus->pollrate = 1;