/* * Kernel module for testing static keys. * * Copyright 2015 Akamai Technologies Inc. All Rights Reserved * * Authors: * Jason Baron * * This software is licensed under the terms of the GNU General Public * License version 2, as published by the Free Software Foundation, and * may be copied, distributed, and modified under those terms. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. */ #include #include /* old keys */ struct static_key base_old_true_key = STATIC_KEY_INIT_TRUE; EXPORT_SYMBOL_GPL(base_old_true_key); struct static_key base_inv_old_true_key = STATIC_KEY_INIT_TRUE; EXPORT_SYMBOL_GPL(base_inv_old_true_key); struct static_key base_old_false_key = STATIC_KEY_INIT_FALSE; EXPORT_SYMBOL_GPL(base_old_false_key); struct static_key base_inv_old_false_key = STATIC_KEY_INIT_FALSE; EXPORT_SYMBOL_GPL(base_inv_old_false_key); /* new keys */ DEFINE_STATIC_KEY_TRUE(base_true_key); EXPORT_SYMBOL_GPL(base_true_key); DEFINE_STATIC_KEY_TRUE(base_inv_true_key); EXPORT_SYMBOL_GPL(base_inv_true_key); DEFINE_STATIC_KEY_FALSE(base_false_key); EXPORT_SYMBOL_GPL(base_false_key); DEFINE_STATIC_KEY_FALSE(base_inv_false_key); EXPORT_SYMBOL_GPL(base_inv_false_key); static void invert_key(struct static_key *key) { if (static_key_enabled(key)) static_key_disable(key); else static_key_enable(key); } static int __init test_static_key_base_init(void) { invert_key(&base_inv_old_true_key); invert_key(&base_inv_old_false_key); invert_key(&base_inv_true_key.key); invert_key(&base_inv_false_key.key); return 0; } static void __exit test_static_key_base_exit(void) { } module_init(test_static_key_base_init); module_exit(test_static_key_base_exit); MODULE_AUTHOR("Jason Baron "); MODULE_LICENSE("GPL"); 7c44ecea49cf69a708203b76ba5535'>commitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'tools/iio/lsiio.c')
'>2017-01-25 21:05:37 +0000
commit1372cef1c697d8aac0cc923f8aa2c37d790ec9ed (patch)
treeed5f350cd559bc15ae370f0c9fd280204e98597d /drivers/usb/storage/unusual_jumpshot.h
parentd00b74613fb18dfd0a5aa99270ee2e72d5c808d7 (diff)
regulator: fixed: Revert support for ACPI interface
This reverts commit 13bed58ce874 (regulator: fixed: add support for ACPI interface). While there does appear to be a practical need to manage regulators on ACPI systems, using ad-hoc properties to describe regulators to the kernel presents a number of problems (especially should ACPI gain first class support for such things), and there are ongoing discussions as to how to manage this. Until there is a rough consensus, revert commit 13bed58ce8748d43, which hasn't been in a released kernel yet as discussed in [1] and the surrounding thread. [1] http://lkml.kernel.org/r/20170125184949.x2wkoo7kbaaajkjk@sirena.org.uk Signed-off-by: Mark Rutland <mark.rutland@arm.com> Cc: Liam Girdwood <lgirdwood@gmail.com> Cc: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com> Cc: Lu Baolu <baolu.lu@linux.intel.com> Cc: Mark Brown <broonie@kernel.org> Cc: Rafael J. Wysocki <rafael@kernel.org> Cc: linux-kernel@vger.kernel.org Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'drivers/usb/storage/unusual_jumpshot.h')