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

Commit e4bbf2f5 authored by Pavel Roskin's avatar Pavel Roskin Committed by John W. Linville
Browse files

ath5k: fix formatting errors found by checkpatch.pl

parent d2c7f773
Loading
Loading
Loading
Loading
+11 −10
Original line number Original line Diff line number Diff line
@@ -684,7 +684,8 @@ struct ath5k_gain {
#define	CHANNEL_G	(CHANNEL_2GHZ | CHANNEL_OFDM)
#define	CHANNEL_G	(CHANNEL_2GHZ | CHANNEL_OFDM)
#define	CHANNEL_X	(CHANNEL_5GHZ | CHANNEL_OFDM | CHANNEL_XR)
#define	CHANNEL_X	(CHANNEL_5GHZ | CHANNEL_OFDM | CHANNEL_XR)


#define	CHANNEL_ALL	(CHANNEL_OFDM|CHANNEL_CCK|CHANNEL_2GHZ|CHANNEL_5GHZ)
#define	CHANNEL_ALL	(CHANNEL_OFDM | CHANNEL_CCK | \
			 CHANNEL_2GHZ | CHANNEL_5GHZ)


#define CHANNEL_MODES		CHANNEL_ALL
#define CHANNEL_MODES		CHANNEL_ALL


+8 −9
Original line number Original line Diff line number Diff line
@@ -245,8 +245,7 @@ int ath5k_hw_init(struct ath5k_softc *sc)




	/* Return on unsuported chips (unsupported eeprom etc) */
	/* Return on unsuported chips (unsupported eeprom etc) */
	if ((srev >= AR5K_SREV_AR5416) &&
	if ((srev >= AR5K_SREV_AR5416) && (srev < AR5K_SREV_AR2425)) {
	(srev < AR5K_SREV_AR2425)) {
		ATH5K_ERR(sc, "Device not yet supported.\n");
		ATH5K_ERR(sc, "Device not yet supported.\n");
		ret = -ENODEV;
		ret = -ENODEV;
		goto err;
		goto err;
+11 −13
Original line number Original line Diff line number Diff line
@@ -814,8 +814,7 @@ ath5k_desc_alloc(struct ath5k_softc *sc)


	INIT_LIST_HEAD(&sc->txbuf);
	INIT_LIST_HEAD(&sc->txbuf);
	sc->txbuf_len = ATH_TXBUF;
	sc->txbuf_len = ATH_TXBUF;
	for (i = 0; i < ATH_TXBUF; i++, bf++, ds++,
	for (i = 0; i < ATH_TXBUF; i++, bf++, ds++, da += sizeof(*ds)) {
			da += sizeof(*ds)) {
		bf->desc = ds;
		bf->desc = ds;
		bf->daddr = da;
		bf->daddr = da;
		list_add_tail(&bf->list, &sc->txbuf);
		list_add_tail(&bf->list, &sc->txbuf);
@@ -2710,8 +2709,7 @@ ath5k_reset(struct ath5k_softc *sc, struct ieee80211_channel *chan,


	fast = ((chan != NULL) && modparam_fastchanswitch) ? 1 : 0;
	fast = ((chan != NULL) && modparam_fastchanswitch) ? 1 : 0;


	ret = ath5k_hw_reset(ah, sc->opmode, sc->curchan, fast,
	ret = ath5k_hw_reset(ah, sc->opmode, sc->curchan, fast, skip_pcu);
								skip_pcu);
	if (ret) {
	if (ret) {
		ATH5K_ERR(sc, "can't reset hardware (%d)\n", ret);
		ATH5K_ERR(sc, "can't reset hardware (%d)\n", ret);
		goto err;
		goto err;
+104 −100
Original line number Original line Diff line number Diff line
@@ -703,7 +703,8 @@ static ssize_t read_file_ani(struct file *file, char __user *user_buf,
	len += snprintf(buf + len, sizeof(buf) - len,
	len += snprintf(buf + len, sizeof(buf) - len,
			"spur immunity level:\t\t%d\n",
			"spur immunity level:\t\t%d\n",
			as->spur_level);
			as->spur_level);
	len += snprintf(buf+len, sizeof(buf)-len, "firstep level:\t\t\t%d\n",
	len += snprintf(buf + len, sizeof(buf) - len,
			"firstep level:\t\t\t%d\n",
			as->firstep_level);
			as->firstep_level);
	len += snprintf(buf + len, sizeof(buf) - len,
	len += snprintf(buf + len, sizeof(buf) - len,
			"OFDM weak signal detection:\t%s\n",
			"OFDM weak signal detection:\t%s\n",
@@ -724,11 +725,14 @@ static ssize_t read_file_ani(struct file *file, char __user *user_buf,
	_struct.cycles > 0 ? \
	_struct.cycles > 0 ? \
	_struct._field * 100 / _struct.cycles : 0
	_struct._field * 100 / _struct.cycles : 0


	len += snprintf(buf+len, sizeof(buf)-len, "profcnt tx\t\t%u\t(%d%%)\n",
	len += snprintf(buf + len, sizeof(buf) - len,
			"profcnt tx\t\t%u\t(%d%%)\n",
			CC_PRINT(as->last_cc, tx_frame));
			CC_PRINT(as->last_cc, tx_frame));
	len += snprintf(buf+len, sizeof(buf)-len, "profcnt rx\t\t%u\t(%d%%)\n",
	len += snprintf(buf + len, sizeof(buf) - len,
			"profcnt rx\t\t%u\t(%d%%)\n",
			CC_PRINT(as->last_cc, rx_frame));
			CC_PRINT(as->last_cc, rx_frame));
	len += snprintf(buf+len, sizeof(buf)-len, "profcnt busy\t\t%u\t(%d%%)\n",
	len += snprintf(buf + len, sizeof(buf) - len,
			"profcnt busy\t\t%u\t(%d%%)\n",
			CC_PRINT(as->last_cc, rx_busy));
			CC_PRINT(as->last_cc, rx_busy));
#undef CC_PRINT
#undef CC_PRINT
	len += snprintf(buf + len, sizeof(buf) - len, "profcnt cycles\t\t%u\n",
	len += snprintf(buf + len, sizeof(buf) - len, "profcnt cycles\t\t%u\n",
+4 −4

File changed.

Contains only whitespace changes.

+23 −23

File changed.

Contains only whitespace changes.

+2 −2

File changed.

Contains only whitespace changes.

+1 −1

File changed.

Contains only whitespace changes.

+1 −1

File changed.

Contains only whitespace changes.

+2 −2

File changed.

Contains only whitespace changes.

+1 −1

File changed.

Contains only whitespace changes.

+10 −10

File changed.

Contains only whitespace changes.

+1 −1

File changed.

Contains only whitespace changes.

+1 −1

File changed.

Contains only whitespace changes.

+2 −2

File changed.

Contains only whitespace changes.

Loading