History

net: dsa: microchip: move ksz_chip_id enum to platform include

With the ksz_chip_id enums moved to the platform include file for ksz switches, platform code that instantiates a device can now use these to set ksz_platform_data::chip_id.

Daniel Danzberger committed 2 years ago

Commit d16f1091 parent 3bc05fa2 files · +20 −19Browse files

Showing the changes to include/linux/platform_data (1 of 2 files). Show all

Unified · Split

include/linux/platform_data/microchip-ksz.h+19−0
@@ -22,6 +22,25 @@ · 21 unmodified lines
22#include <linux/types.h>22#include <linux/types.h>
23#include <linux/platform_data/dsa.h>23#include <linux/platform_data/dsa.h>
24 24
25enum ksz_chip_id {
26 KSZ8563_CHIP_ID = 0x8563,
27 KSZ8795_CHIP_ID = 0x8795,
28 KSZ8794_CHIP_ID = 0x8794,
29 KSZ8765_CHIP_ID = 0x8765,
30 KSZ8830_CHIP_ID = 0x8830,
31 KSZ9477_CHIP_ID = 0x00947700,
32 KSZ9896_CHIP_ID = 0x00989600,
33 KSZ9897_CHIP_ID = 0x00989700,
34 KSZ9893_CHIP_ID = 0x00989300,
35 KSZ9563_CHIP_ID = 0x00956300,
36 KSZ9567_CHIP_ID = 0x00956700,
37 LAN9370_CHIP_ID = 0x00937000,
38 LAN9371_CHIP_ID = 0x00937100,
39 LAN9372_CHIP_ID = 0x00937200,
40 LAN9373_CHIP_ID = 0x00937300,
41 LAN9374_CHIP_ID = 0x00937400,
42};
43
25struct ksz_platform_data {44struct ksz_platform_data {
26 /* Must be first such that dsa_register_switch() can access it */45 /* Must be first such that dsa_register_switch() can access it */
27 struct dsa_chip_data cd;46 struct dsa_chip_data cd;

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t