/* * max9877.h -- amp driver for max9877 * * Copyright (C) 2009 Samsung Electronics Co.Ltd * Author: Joonyoung Shim * * This program is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License as published by the * Free Software Foundation; either version 2 of the License, or (at your * option) any later version. * */ #ifndef _MAX9877_H #define _MAX9877_H #define MAX9877_INPUT_MODE 0x00 #define MAX9877_SPK_VOLUME 0x01 #define MAX9877_HPL_VOLUME 0x02 #define MAX9877_HPR_VOLUME 0x03 #define MAX9877_OUTPUT_MODE 0x04 /* MAX9877_INPUT_MODE */ #define MAX9877_INB (1 << 4) #define MAX9877_INA (1 << 5) #define MAX9877_ZCD (1 << 6) /* MAX9877_OUTPUT_MODE */ #define MAX9877_OUTMODE_MASK (15 << 0) #define MAX9877_OSC_MASK (3 << 4) #define MAX9877_OSC_OFFSET 4 #define MAX9877_BYPASS (1 << 6) #define MAX9877_SHDN (1 << 7) #endif 78384553dddcf5b81b22'/> net-next plumbingsTobias Klauser
summaryrefslogtreecommitdiff
path: root/net/batman-adv/translation-table.c
diff options
context:
space:
mode:
authorStanislaw Gruszka <sgruszka@redhat.com>2017-01-29 12:40:52 +0100
committerKalle Valo <kvalo@codeaurora.org>2017-01-31 09:08:52 +0200
commit33e962c8871f015f5c8978384553dddcf5b81b22 (patch)
tree43aff96c2ee21d9e0fa2018457778a4de52053cd /net/batman-adv/translation-table.c
parent575ddce0507789bf9830d089557d2199d2f91865 (diff)
rt2x00: fix clk_get call
clk_get() takes two arguments and might return ERR_PTR(), so we have to nullify pointer on that case, to do not break further call to clk_get_rate(). Reported-by: Felix Fietkau <nbd@nbd.name> Fixes: 34db70b92fae ("rt2x00: add copy of clk for soc devices") Signed-off-by: Stanislaw Gruszka <sgruszka@redhat.com> Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Diffstat (limited to 'net/batman-adv/translation-table.c')
'commit-subject'>PCI/MSI: pci-xgene-msi: Fix CPU hotplug registration handling
The conversion to the new hotplug state machine introduced a regression where a successful hotplug registration would be treated as an error, effectively disabling the MSI driver forever. Fix it by doing the proper check on the return value. Fixes: 9c248f8896e6 ("PCI/xgene-msi: Convert to hotplug state machine") Signed-off-by: Marc Zyngier <marc.zyngier@arm.com> Signed-off-by: Bjorn Helgaas <bhelgaas@google.com> Acked-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de> Tested-by: Duc Dang <dhdang@apm.com> CC: Thomas Gleixner <tglx@linutronix.de> CC: stable@vger.kernel.org
Diffstat (limited to 'tools/perf/bench/mem-memset-arch.h')