Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

hwspinlock: remove now unused pdata from header file

The last user turned out to be obsolete and was removed. Remove the
unused struct now, too.

Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
Reviewed-by: Linus Walleij <linusw@kernel.org>
Acked-by: Andy Shevchenko <andriy.shevchenko@intel.com>
Link: https://lore.kernel.org/r/20260401071141.4718-3-wsa+renesas@sang-engineering.com
Signed-off-by: Bjorn Andersson <andersson@kernel.org>

authored by

Wolfram Sang and committed by
Bjorn Andersson
ad5fd5ae 392035c8

-28
-28
include/linux/hwspinlock.h
··· 25 25 struct hwspinlock_device; 26 26 struct hwspinlock_ops; 27 27 28 - /** 29 - * struct hwspinlock_pdata - platform data for hwspinlock drivers 30 - * @base_id: base id for this hwspinlock device 31 - * 32 - * hwspinlock devices provide system-wide hardware locks that are used 33 - * by remote processors that have no other way to achieve synchronization. 34 - * 35 - * To achieve that, each physical lock must have a system-wide id number 36 - * that is agreed upon, otherwise remote processors can't possibly assume 37 - * they're using the same hardware lock. 38 - * 39 - * Usually boards have a single hwspinlock device, which provides several 40 - * hwspinlocks, and in this case, they can be trivially numbered 0 to 41 - * (num-of-locks - 1). 42 - * 43 - * In case boards have several hwspinlocks devices, a different base id 44 - * should be used for each hwspinlock device (they can't all use 0 as 45 - * a starting id!). 46 - * 47 - * This platform data structure should be used to provide the base id 48 - * for each device (which is trivially 0 when only a single hwspinlock 49 - * device exists). It can be shared between different platforms, hence 50 - * its location. 51 - */ 52 - struct hwspinlock_pdata { 53 - int base_id; 54 - }; 55 - 56 28 #ifdef CONFIG_HWSPINLOCK 57 29 58 30 int hwspin_lock_register(struct hwspinlock_device *bank, struct device *dev,