linux-kernel


when the probe function is called for i2c client RTC drivers below?


In my .dts file , RTC is on i2c Bus
i2c1: i2c#f0018000 {
status = "okay";
pcf8563#51 {
compatible= "nxp,pcf8563";
reg=<0x51>;
};
Driver code for RTC is
static const struct i2c_device_id pcf8563_id[] = {
{ "pcf8563", 0 },
{ "rtc8564", 0 },
{}
};
MODULE_DEVICE_TABLE(i2c, pcf8563_id);
static const struct of_device_id pcf8563_of_match[] __devinitconst = {
{ .compatible = "nxp,pcf8563" },
{}
};
MODULE_DEVICE_TABLE(of, pcf8563_of_match);
static struct i2c_driver pcf8563_driver = {
.driver = {
.name = "rtc-pcf8563",
.owner = THIS_MODULE,
.of_match_table = of_match_ptr(pcf8563_of_match),
},
.probe = pcf8563_probe,
.remove = pcf8563_remove,
.id_table = pcf8563_id,
};
Here what is the importance of pcf8563_id and pcf8563_of_match these two structures and when the probe will call ?

Related Links

how to determine if a Linux kernel module is leaking memory
Messing with hand-edited kernel config
Calling request_firmware/request_firmware_nowait simultaneous
Determining why kernel hangs on boot
linux kernel dump - at what time did that happen?
How does the kernel know if the CPU is in user mode or kenel mode?
ARM lockdown register write operation crashes the device
About preemptive and non-preemptive kernel
Where's my module gone?
Which module in linux 2.6 kernel should I modify to count the number of ip packets sent/received?
Map device driver code to Logic Analyzer waveform
Can't access super_blocks list from kernel module: undefined!
Raw Socket Help: Why UDP packets created by raw sockets are not being received by kernel UDP?
Difference between an IRQ and interrupt vector in linux kernel
Debugfs file mode flags?
Niceness and priority processes on Linux system

Categories

HOME
cordova
gnuplot
jsoup
form-submit
microsoft-cognitive
uwp-xaml
filesystems
reactor-netty
facebook-live-api
outlook-addin
virtocommerce
pstricks
url-rewriting
vbulletin
relation
junit4
nlog
firebase-cloud-messaging
apprtcdemo
swtbot
ssrs-2016
phylogeny
virtuoso
navigation-drawer
reactive-streams
tornado-motor
psftp
thinktecture-ident-model
leanft
interactive
envelope
gooddata
lift
carplay
zlib
evosuite
virsh
miva
bubble-sort
embedded-javascript
rtai
google-chartwrapper
leshan
ch
display-bugs
xlconnect
ubuntu-15.10
dotpeek
java-threads
lunrjs
sonarqube-5.4
traceroute
r1soft
bitcount
network-monitoring
scrapyd
stunnel
max-heap
kermit
savefiledialog
drilldown
hashbytes
date-arithmetic
rgs
jekyll-extensions
fast-esp
chaplinjs
qglviewer
dynamic-html
nsfontmanager
nodejitsu
postfix-operator
graphml
fold
ctime
glossary
hibernate-annotations
google-doodle
looper
iphone-3gs
entityreference
clean-language
html-rendering
moss2007enterprisesearch
comdlg32

Resources

Encrypt Message



code
soft
python
ios
c
html
jquery
cloud
mobile