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

return a kernel handle from an IOCTL call - security issue?
Bootup linux kernel profiling tool including kexec?
Who creates the virtual memory in Linux?
How to solve 'drivers/net/igbvf/igbvf.h:129:15: error: duplicate member 'page' '?
Clarifying who decides memory mappings and port IO mappings
How correctly wake up process inside interrupt handlers
Understanding “Buffers” and “Cached” from free command
Multiple hugepage sizes in Linux (x86-64)?
What is the base_reachable_time (ARP related) proc entry
Where does in ext3 source code requests to read an indirect block sent?
Why jiffies protected by seq-lock but not directly use atomic operation
What does the term POLICED in Linux network scheduler (tc qdisc) named after?
Debug Linux kernel pre-decompression stage
how would i write a kernel module that runs program b whenever program a is called
call gettid witin glibc
uboot- MMC no SDcard

Categories

HOME
loadrunner
qt5
sitecore8
multidimensional-array
alexa
payment
unix
boost
webserver
ios8
google-vr
worksheet-function
spark-dataframe
navbar
m3u8
appcelerator-titanium
adodb-php
kafka-consumer-api
twitter-typeahead
bit-manipulation
licode
intercept
cpu-registers
touch
scons
messagebox
edi
u2
pywavelets
bus
pgadmin
maxlength
android-sensors
heatmap
byte
live
gearman
required
templating
fancytree
gemfile
gulp-usemin
tycho
autocorrect
wistia
subtitle
heyzap
release-management
prime-factoring
schemaless
maven-resources-plugin
sceditor
erwin
mechanize
mapfragment
groovy-eclipse
highcharts-ng
jquery-widgets
dfdl
mindbody
integer-overflow
payara
bullseye
steroids
elmah.mvc
html5builder
mpmediapickercontroller
ncbi
rot13
componentone
desktop-shortcut
appcompat-v7-r22.1
member
runscope
android-handlerthread
pixate
amazon-simpledb
postfix-operator
citrix-access-gateway
scite
apprequests
cvxopt
hiding
java-service-wrapper
wexitstatus
primefaces-extensions
32feet
memory-profiling
actinic
webarchive
wcsf
cgpoint
fibonacci-heap
httpverbs
platform-independence
o3d

Resources

Mobile Apps Dev
Database Users
javascript
java
csharp
php
android
MS Developer
developer works
python
ios
c
html
jquery
RDBMS discuss
Cloud Virtualization
Database Dev&Adm
javascript
java
csharp
php
python
android
jquery
ruby
ios
html
Mobile App
Mobile App
Mobile App