Implementation of fwnode_operations :: device_get_match_data() for software nodes?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

I have a need to instantiate a driver written for OF which calls
device_get_match_data(dev) to get various information based on the
compatible string.

I am creating a software node based on the following properties:

	struct property_entry props[2] = {
		PROPERTY_ENTRY_STRING("compatible", compatible),
		{},
	};

(I see I'm not the only one doing this, some drivers/platform/x86/x86-android-tablets.c
and drivers/platform/chrome/chromeos_laptop.c also do it)

and the driver in question does begin to probe, but its match_data is
NULL, because the operation from the title isn't implemented for
software nodes. So probing ultimately fails.

Is there some sort or reason why this doesn't exist, other than a lack
of need?

Can someone please help me with an implementation of this feature?

Thanks,
Vladimir



[Index of Archives]     [Linux IBM ACPI]     [Linux Power Management]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Share Photos]     [Security]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]     [Linux Resources]
  Powered by Linux