Using Linux eeprom (at24) driver from another driver -
we have 24xx eeprom
on our custom board; it’s hooked device tree , can read/write userspace. i’m developing driver control misc gpio’s
, , i’d able read eeprom
. (the contents won’t changing @ – it’ll write-protected).
i’m struggling figure out whether/how driver can hook at24 driver somehow? (perhaps
“if (chip.setup) chip.setup(&at24->macc, chip.context)”
, can’t spot how use this)
or other ‘best’ methods there might chip driver. (kernel
4.4)
Comments
Post a Comment