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

Will a system call interrupt a softirq?
U-boot source in yocto project
How do struct module works in kernel
Getting error: 'SCHED_IDLE' undeclared when trying to compile cyclictest
Does linux ever return regions from `mmap` that are adjacent?
kernel boot messages are not seen after removing quiet boot parameter
Use the macro per_cpu should apply lock?
Booting Debian Wheezy on a BeagleCore ? (Kernel panic - not syncing: Attempted to kill init!)
Trying to use Linux menuconfig with yocto/morty
Does copying to/from kernel/userpace when using WAN modems have a significant impact on performance?
What is the proper way to install an ubuntu kernel?
Debian Jessie Headless Display Shifted Towards Left
What is the use of struct cdev in this case
atheros ar9330 superchannel can not work in ap mode
Could Linux kernel load and run another Linux kernel?
Decompressing Linux zImage

Categories

HOME
angular
react-native
git
magento-1.9
unix
modularity
web-crawler
winzip
basecamp
caffe
houndify
mips32
mapkit
facebook-live-api
apache-apex
visio
sourceforge
httpresponse
row-number
unity3d-unet
sensenet
accurev
android-constraintlayout
pyside
miktex
edi
kafka-python
tensorflow-serving
uppercase
layer
tornado-motor
android-debug
basic4android
web.py
sap-bw
grayscale
fancytree
oclazyload
android-device-monitor
laravel-excel
simplemodal
paypal-adaptive-payments
ffi
rethinkdb-python
cakephp-2.x
matlab-uitable
heyzap
opscenter
lab-color-space
android-gson
csla
maven-resources-plugin
embedded-javascript
r.js
scodec
throttle
idfa
arrangeoverride
tvml
rgraph
idiorm
sparklines
traffic-simulation
assignment-operator
jseparator
adobe-flash-cs3
ti-nspire
fluid-layout
fswatch
joptimizer
qmediaplayer
treenode
file-attributes
comfortable-mexican-sofa
xcode6.1
code-metrics
casbah
psychology
linq-to-lucene
println
microsoft-search-server
mapstraction
django-1.2
inter-process-communicat
problem-steps-recorder
nsfontmanager
c++builder-6
scite
system.speech.recognition
amber-smalltalk
ereg
set-theory
vp8
function-overloading
scalaquery
httpverbs
duck-typing
resource-cleanup
zero-pad
release-builds

Resources

Encrypt Message



code
soft
python
ios
c
html
jquery
cloud
mobile