Thread (48 messages) 48 messages, 4 authors, 2021-11-29

Re: [PATCH v2 8/9] i2c: i801: Improve register_dell_lis3lv02d_i2c_device

From: Andy Shevchenko <hidden>
Date: 2021-08-11 15:53:34

On Fri, Aug 06, 2021 at 11:18:05PM +0200, Heiner Kallweit wrote:
- Use an initializer for struct i2c_board_info info
- Use dmi_match()
- Simplify loop logic
I'm wondering if changing this to a DMI match table will give better result.

Something like
(Sorry I forgot APIs, but plenty of examples are under PDx86: drivers/platform/x86):

struct dmi_..._id *id;

id = dmi_..._match();
if (!id) {
	pci_warn();
	return;
}

i2c_new_client_device(...);


-- 
With Best Regards,
Andy Shevchenko

Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help