Skip to content

Commit ad5fd5a

Browse files
Wolfram Sangandersson
authored andcommitted
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>
1 parent 392035c commit ad5fd5a

1 file changed

Lines changed: 0 additions & 28 deletions

File tree

include/linux/hwspinlock.h

Lines changed: 0 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -25,34 +25,6 @@ struct hwspinlock;
2525
struct hwspinlock_device;
2626
struct hwspinlock_ops;
2727

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-
5628
#ifdef CONFIG_HWSPINLOCK
5729

5830
int hwspin_lock_register(struct hwspinlock_device *bank, struct device *dev,

0 commit comments

Comments
 (0)