* [PATCH] mt76x0: correct type for eeprom gain value
@ 2018-08-07 8:43 Stanislaw Gruszka
2018-08-09 15:07 ` Kalle Valo
0 siblings, 1 reply; 2+ messages in thread
From: Stanislaw Gruszka @ 2018-08-07 8:43 UTC (permalink / raw)
To: linux-wireless; +Cc: Dan Carpenter, Stanislaw Gruszka
Change type to u8 to allow sanity check agaist 0xff;
Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Fixes: e87b5039511a ("mt76x0: eeprom files")
Signed-off-by: Stanislaw Gruszka <sgruszka@redhat.com>
---
drivers/net/wireless/mediatek/mt76/mt76x0/eeprom.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/net/wireless/mediatek/mt76/mt76x0/eeprom.c b/drivers/net/wireless/mediatek/mt76/mt76x0/eeprom.c
index 1ecd018f12b8..9ea5f5ebd3be 100644
--- a/drivers/net/wireless/mediatek/mt76/mt76x0/eeprom.c
+++ b/drivers/net/wireless/mediatek/mt76/mt76x0/eeprom.c
@@ -241,7 +241,7 @@
static void
mt76x0_set_lna_gain(struct mt76x0_dev *dev, u8 *eeprom)
{
- s8 gain;
+ u8 gain;
dev->ee->lna_gain_2ghz = eeprom[MT_EE_LNA_GAIN_2GHZ];
dev->ee->lna_gain_5ghz[0] = eeprom[MT_EE_LNA_GAIN_5GHZ_0];
--
1.9.3
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] mt76x0: correct type for eeprom gain value
2018-08-07 8:43 [PATCH] mt76x0: correct type for eeprom gain value Stanislaw Gruszka
@ 2018-08-09 15:07 ` Kalle Valo
0 siblings, 0 replies; 2+ messages in thread
From: Kalle Valo @ 2018-08-09 15:07 UTC (permalink / raw)
To: Stanislaw Gruszka; +Cc: linux-wireless, Dan Carpenter, Stanislaw Gruszka
Stanislaw Gruszka <sgruszka@redhat.com> wrote:
> Change type to u8 to allow sanity check agaist 0xff;
>
> Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
> Fixes: e87b5039511a ("mt76x0: eeprom files")
> Signed-off-by: Stanislaw Gruszka <sgruszka@redhat.com>
Patch applied to wireless-drivers-next.git, thanks.
5dc5bf2899a5 mt76x0: correct type for eeprom gain value
--
https://patchwork.kernel.org/patch/10558375/
https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2018-08-09 17:33 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-08-07 8:43 [PATCH] mt76x0: correct type for eeprom gain value Stanislaw Gruszka
2018-08-09 15:07 ` Kalle Valo
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).