linux/drivers/rtc/rtc-pcf8523.c
<<
14.7 /spatio /formio a 14.7 href="../linux+v3 13.1/drivers/rtc/rtc-pcf8523.c">14.7 img src="../.static/gfx/right.png" alt=">>">14 /spatio14 spat class="lxr_search">14.714.7 input typn2 hidden" namn2 navtarget" ption2 ">14.7 input typn2 text" namn2 search" id2 search">14.7 buttt3otypn2 submit">Search14.7 Prefso /a>14 /spatio.7 /divio.7 form ac/opt="ajax+*" method="post" onsubmit="return false;">14 input typn2 hidden" namn2 ajax_lookup" id2 ajax_lookup" ption2 ">1.7 /formio1.7 div class="headingbotttm">o div id2 file_contents"i
 
1 /a> spat class="comment">/* /spatio
 
2 /a> spat class="comment"> * Copyright (C) 2012 Avoptic Design GmbH /spatio
 
3 /a> spat class="comment"> * /spatio
 
4 /a> spat class="comment"> * This program is free software; you cat redistribute it and/or modify /spatio
 
5 /a> spat class="comment"> * it under the terms of the GNU General Public License verspt3o2 as /spatio
 
6 /a> spat class="comment"> * published by the Free Software Founda/opt. /spatio
 
7 /a> spat class="comment"> */ /spatio
 
8 /a>1
 
9 /a>#include <linux/bcd.h /a>>1
 #include <linux/i2c.h /a>>1
 11opa>#include <linux/module.h /a>>1
 12opa>#include <linux/rtc.h /a>>1
 13opa>#include <linux/of.h /a>>1
 14 /a>1
 15 /a>#define
 a href="+code=DRIVER_NAME" class="sref">DRIVER_NAME /a>  spat class="string">"rtc-pcf8523" /spatio
 16 /a>1
 17 /a>#define
 a href="+code=REG_CONTROL1" class="sref">REG_CONTROL1 /a> 0x001
 18 /a>#define
 a href="+code=REG_CONTROL1_CAP_SEL" class="sref">REG_CONTROL1_CAP_SEL /a> (1 << 7)1
 19 /a>#define
 a href="+code=REG_CONTROL1_STOP" class="sref">REG_CONTROL1_STOP /a>    (1 << 5)1
 20 /a>1
 21 /a>#define
 a href="+code=REG_CONTROL3" class="sref">REG_CONTROL3 /a> 0x021
 22 /a>#define
 a href="+code=REG_CONTROL3_PM_BLD" class="sref">REG_CONTROL3_PM_BLD /a> (1 << 7)  spat class="comment">/* battery low detec/opt disabled */ /spatio
 23 /a>#define
 a href="+code=REG_CONTROL3_PM_VDD" class="sref">REG_CONTROL3_PM_VDD /a> (1 << 6)  spat class="comment">/* switch-over disabled */ /spatio
 24 /a>#define
 a href="+code=REG_CONTROL3_PM_DSM" class="sref">REG_CONTROL3_PM_DSM /a> (1 << 5)  spat class="comment">/* direc/ switching mode */ /spatio
 25 /a>#define
 a href="+code=REG_CONTROL3_PM_MASK" class="sref">REG_CONTROL3_PM_MASK /a> 0xe01
 26 /a>#define
 a href="+code=REG_CONTROL3_BLF" class="sref">REG_CONTROL3_BLF /a> (1 << 2)  spat class="comment">/* battery low bit, read-only */ /spatio
 27 /a>1
 28 /a>#define
 a href="+code=REG_SECONDS" class="sref">REG_SECONDS /a>  0x031
 29 /a>#define
 a href="+code=REG_SECONDS_OS" class="sref">REG_SECONDS_OS /a> (1 << 7)1
 30 /a>1
 31 /a>#define
 a href="+code=REG_MINUTES" class="sref">REG_MINUTES /a>  0x041
 32 /a>#define
 a href="+code=REG_HOURS" class="sref">REG_HOURS /a>    0x051
 33 /a>#define
 a href="+code=REG_DAYS" class="sref">REG_DAYS /a>     0x061
 34 /a>#define
 a href="+code=REG_WEEKDAYS" class="sref">REG_WEEKDAYS /a> 0x071
 35 /a>#define
 a href="+code=REG_MONTHS" class="sref">REG_MONTHS /a>   0x081
 36 /a>#define
 a href="+code=REG_YEARS" class="sref">REG_YEARS /a>    0x091
 37 /a>1
 38 /a>struc/  a href="+code=pcf8523" class="sref">pcf8523 /a> {1
 39 /a>        struc/  a href="+code=rtc_device" class="sref">rtc_device /a> * a href="+code=rtc" class="sref">rtc /a>;1
 40 /a>};1
 41 /a>1
 42 /a>static in/  a href="+code=pcf8523_read" class="sref">pcf8523_read /a>(struc/  a href="+code=i2c_client" class="sref">i2c_client /a> * a href="+code=client" class="sref">client /a>,  a href="+code=u8" class="sref">u8 /a>  a href="+code=reg" class="sref">reg /a>,  a href="+code=u8" class="sref">u8 /a> * a href="+code=ptionp" class="sref">ptionp /a>)1
 43 /a>{1
 44 /a>        struc/  a href="+code=i2c_msg" class="sref">i2c_msg /a>  a href="+code=msgs" class="sref">msgs /a>[2];1
 45 /a>         a href="+code=u8" class="sref">u8 /a>  a href="+code=ption" class="sref">ption /a> = 0;1
 46 /a>        in/  a href="+code=err" class="sref">rr" /a>;1u8 /a>  a h1pcfcalu7">
 27 /a>1
 142 L14" class="l83.class="line" naaddf">rr" /a>;1client /a>,  a href="+c-"driclass="line" naaddf">rr" /a>;1
 39 /a> 4     49tc2id2 L14" class="line" namn2 L14">
 142 L14" class="l83.class="line" nafla2 L14">
 142 L14"fla2 href="drivers/rtc/rtc-pcf8523.c#L46" id2 L46" 5lass="li5e" namn2 L40">
 40 /a>}51
 142 L14" class="l83.class="line" nalx_lo4">
 142 L14"lx_href="dsizeof(e=reg" class="sref">reg /a>,  a href="+c)ivers/rtc/rtc-pcf8523.c#L46" id2 L46" 5lass="li5e" namn2 L41">
 41 /a>15a hre51tc2id2 L14" class="line" namn2 L14">
 142 L14" class="l83.class="line" nabufL14">
 142 L14"bufhref="d&iclass="line" naref">reg /a>,  a href="+civers/rtc/rtc-pcf8523.c#L46" id2 L46" 5lass="li5e" namn2 L42">
 42 /a>s5atic 52s134as42 href="+code=u8" class="sref">u8 5lass="li5e" namn2 L43">
 43 /a>{5
 142 L14" class="l13.class="line" naaddf">rr" /a>;1client /a>,  a href="+c-"driclass="line" naaddf">rr" /a>;1
 44 /a> 5     54tc2id2 L14" class="line" namn2 L14">
 142 L14" class="l13.class="line" nafla2 L14">
 142 L14"fla2 href="dclass="line" naI2C_M_Rf">REG_CONTROL3_I2C_M_Rfhrefivers/rtc/rtc-pcf8523.c#L437" clas4as45ass="linee" namn2 L5">
 
5 /a> sp     5 a href="+code=u8" class="srmn2 L14">
 142 L14" class="l13.class="line" nalx_lo4">
 142 L14"lx_href="dsizeof(e=reg" class="s"sref">ption /a> = 0;1
 46 /a> 5     56a href="+code=u8" class="srmn2 L14">
 142 L14" class="l13.class="line" nabufL14">
 142 L14"bufhref="d&iclass="line" na"sref">ption /a> = 0;1u8 5a>  a h15cfcalu7">
 27 /a>1rr" /a>;1rr" /a>;1
 ne" n">u8 5a>  a h15cfcalu7">
 27 /a>1  
  r3e=u8" class="sref">u8 /a>  a href="+co9.7  
 3a3.14.79  
 3a3.14.79  /a>  a hrBcSIZNAME /a>  spat ca hrBcSIZN 5a>  a h15cfcalu7">.14.79  
 3a3.14.7)/rtc-pcf8523.c#L46" id2 L46" 5lass="li5e" namn2 539">
 39 /a> 4     49tc5id2 L54" class="linif   a h15cfcalu7">a>;1
 40 /a>}51rr" /a>;1
 41 /a>15a hre51tc6id2 L6rtc/rtc-pcf8523.c#L42" id2 L42" class="lin6" namn2 642">
 42 /a>s5atic 52s164as4262" class="lin class="sref">ptionp /a>)1 = 0;1
 43 /a>{5
 44 /a> 5     54tc6id2 L64" class="lin typn2 /rtc-pcf8523.c#L46" id2 L46" 5lass="li56" namn2 65">
 
5 /a> sp     5 a 6ref="6code=}tc-pcf8523.c#L46" id2 L46" 5lass="li56 namn2 L66">
 
6 /a> spat class="ref="6rtc/rtc-pcf8523.c#L17" id2 L17" class="lin64as4as4a6134as4as4as135as4as5as164as4267"+code=pcf8523_read" class="sref">pcf8writa> = 0;1pcf8writaode=i2c_client" class="sref">i2c_client /a> * a href="+code=client" class="sref">client /a>,  a href="+code=u8" class="sref">u8 /a>  a href="+code=reg" class="sref">reg /a>,  a href="+code=u8" class="sref">u8 /a> * a href="+code=ptionp"ss="s"sref">ption /a> = 0;16 27 /a>1
 39 /a> 4     49tc6id2 L64" class="line" namn2 L14">
 * a href="+code=ptionp"ss="s"sref">pti&ama>;1;rs/rtc/lin{ass="sref">reg /a>,  a href="+code=u8" class="sref">u8 /a>on /a> = 0;1
 40 /a>}51i2c_msg /a>  a href="+code=msgs" class="sref">msgs /a79  
 3a3rtc/rtc-pcf8523.c#L46" id2 L46" 5s4as4as457" namn2 741">
 41 /a>15a hre51tc7id2 L74" class="lin class="sref">rr" /a>;1
 42 /a>s5atic 52s174as427href="+code=u8" class="sref">u8 5lass="li57" namn2 743">
 43 /a>{5
 1479  
 3a3rtc/ne" naaddf">rr" /a>;1client /a>,  a href="+c-"driclass="line" naaddf">rr" /a>;1
 44 /a> 5     54tc7id2 L74" class="line" namn2 L14">
 1479  
 3a3rtc/ne" naaddf">rr" 
 142 L14"fla2 href="drivers/rtc/rtc-pcf8523.c#L46" id2 L46" 5lass="li57" namn2 75">
 
5 /a> sp     5 a 7ref="7code=u8" class="srmn2 L14">
 1479  
 3a3rtc/ne" naaddf">rr" 142 L14"lx_href="dsizeof(e=reg" class="s"sref">pti&ama>;1;rs/r/rtc-pcf8523.c#L46" id2 L46" 5lass="li57 namn2 L76">
 
6 /a> spat class=7ref="7code=u8" class="srmn2 L14">
 1479  
 3a3rtc/ne" naaddf">rr" 142 L14"bufhref="d&iclassss="s"sref">pti&ama>;1;rs/rrtc-pcf8523.c#L46" id2 L46" 5lass="li57 namn2 L77">
 
7 /a> spat class="4as427href="+code=u8" class="sref">u8 5a>  a h157fcalu7">7 27 /a>1rr" /a>;1rr" /a>;1
 ne" n">u8 5a>  a h15cfcalu7">
 27 /a>1  
  r3e=u8" class="sref">u8 /a>  a href="+co9.7pti 1479  
 3a3rtc/, 1/rtc-pcf8523.c#L46" id2 L46" 5lass="li57" namn2 739">
 39 /a> 4     49tc7id2 L74" class="linif   a h15cfcalu7">a>;1
 40 /a>}51rr" /a>;1
 41 /a>15a hre51tc8id2 L8rtc/rtc-pcf8523.c#L42" id2 L42" class="lin8" namn2 842">
 42 /a>s5atic 52s184as4282" class="lin typn2 /rtc-pcf8523.c#L46" id2 L46" 5lass="li58" namn2 843">
 43 /a>{5
 44 /a> 5     54tc8id2 L8rtc/rtc-pcf8523.c#L15" id2 L15" class="lin8" namn2 85">
 
5 /a> sp     5 a 8ref="85"+code=pcf8523_read" class="sref">pcf8 
 /fo_capacitanvice /a> * a hrefef">pcf8 
 /fo_capacitanviode=i2c_client" class="sref">i2c_client /a> * a href="+code=client" class="sref">client /a>,  a href="+code=u8" class="sref">u8 /a>bool1msgshigh1
 
6 /a> spat class=8ref="86rtc/rtc-pcf8523.c#L44" id2 L44" class="lin8 namn2 L87">
 
7 /a> spat class=84as4287ode=u8" class="sref">u8 /a>  a href="+code=ption" class="sref">ption /a> = 0;1
 
8 /a>1rr" /a>;1
 39 /a> 4     49tc8id2 L89tc/rtc-pcf8523.c#L15" id2 L15" class="lin9" namn2 940">
 40 /a>}51
a>;1pcf8523_read /a>(struc/  a href="+code=iclass="sref">client /a>,  a href="+code=u8" class="sref">u8 /a>ef">REG_CONTROL1 /a> 0x001ption /a> = 0;1
 41 /a>15a hre51tc9id2 L91" class="linif   a h15cfcalu7">a>;1
 42 /a>s5atic 52s194as4292" class="linnnnnnnnn typn2 ss="sref">rr" /a>;1
 43 /a>{5
 44 /a> 5     54tc9id2 L94" class="linif  !ass="sref">msgshigh1
 
5 /a> sp     5 a 9ref="95" class="linnnnnnnnns="sref">u8 /a>on /a> = 0;1u8 /a>ef">REG_CONTREG_CONTROL1_CAP_SEL /a> (1 << 7)1
 
6 /a> spat class=9ref="9code=u8" claselsetc-pcf8523.c#L437" clas4as4as4as4as4a9 namn2 L97">
 
7 /a> spat class=94as4297" class="linnnnnnnnns="sref">u8 /a>on /a> = 0;1REG_CONTREG_CONTROL1_CAP_SEL /a> (1 << 7)1
 
8 /a>1
 
9 /a>#include <id2 L94" class="line" namn2 L14">
a>;1pcf8writa> = 0;1pcf8writaode=iclass="sref">client /a>,  a href="+code=u8" class="sref">u8 /a>ef">REG_CONTROL1 /a> 0x001ption /a> = 0;1
 #include <id2 t;i" class="linif   a h15cfcalu7">a>;1
 11opa>#include <01d2 t;1" class="linnnnnnnnn typn2 ss="sref">rr" /a>;1
 12opa>#include <02d2 t;href="+code=u8" class="sref">u8 5lass="li510" namn2 L013">
 13opa>#include <03d2 t;4" class="lin typn2 ss="sref">rr" /a>;1
 14 /a>1
 15 /a>#define
 a h05d2 t;5ref="+code=u8" class="sref">u8 5lass="li510" namn2 L016">
 16 /a>1pcf8 
t_pmce /a> * a hrefef">pcf8 
t_pmode=i2c_client" class="sref">i2c_client /a> * a href="+code=client" class="sref">client /a>,  a href="+code=u8" class="sref">u8 /a>  a href="+code=ption" class="sref">ptipmce /a> * a hrefem/rtc/tc-pcf8523.c#L17" id2 L17" class="lin10" namn2 L017">
 17 /a>#define
 a h07d2 t;7rtc/rtc-pcf8523.c#L44" id2 L44" class="lin10" namn2 L018">
 18 /a>#define
 a h08d2 t;4" class="line" naref">rr" /  a href="+code=ption" class="sref">ption /a> = 0;1
 19 /a>#define
 a h09d2 t;4" class="liniclass="sref">rr" /a>;1
 #include <t;
 11opa>#include <1d2 t14" class="line" namn2 L14">
a>;1pcf8523_read /a>(struc/  a href="+code=iclass="sref">client /a>,  a href="+code=u8" class="sref">u8 /a>ef">REG_CONTROL3 /a> 0x021ption /a> = 0;1
 12opa>#include <t;a>;1
 13opa>#include <t;rr" /a>;1
 14 /a>1
 15 /a>#define
 a hhref=11code=u8" class="srmn2 L14">
on /a> = 0;1ption /a> = 0;1u8 /a>ef">REG_CON>REG_CONTROL3_PM_MASK /a> 0xe01ptipmce /a> * a hrefem/rtcrtc-pcf8523.c#L437" clas4as4as4as4as4a1e" namn2 LL16">
 16 /a>1
 17 /a>#define
 a hhref=117ode=u8" class="sref">u8 /a>a>;1pcf8writa> = 0;1pcf8writaode=iclass="sref">client /a>,  a href="+code=u8" class="sref">u8 /a>ef">REG_CONTROL3 /a> 0x021ption /a> = 0;1
 18 /a>#define
 a hhref=118" class="linif   a h15cfcalu7">a>;1
 19 /a>#define
 a hhref=119" class="linnnnnnnnn typn2 ss="sref">rr" /a>;1
 20 /a>1
 21 /a>#define
 a 1href=124" class="lin typn2 /rtc-pcf8523.c#L46" id2 L46" 5lass="li51e" namn2 1L22">
 22 /a>#define
 a 1href=1+code=}tc-pcf8523.c#L46" id2 L46" 5lass="li51e" namn2 1L23">
 23 /a>#define
 a 1href=123tc/rtc-pcf8523.c#L42" id2 L42" class="lin1e" namn2 1L24">
 24 /a>#define
 a 1href=1+code=de=pcf8523_read" class="sref">pcf8 top_r>;1pcf8 top_r>;ode=i2c_client" class="sref">i2c_client /a> * a href="+code=client" class="sref">client /a>,  a href="+code=u8" clrtc-pcf8523.c#L43" id2 L43" class="lin1e" namn2 1L25">
 25 /a>#define
 a 1href=1+code=rtc-pcf8523.c#L44" id2 L44" class="lin1e" namn2 1L26">
 26 /a>#define
 a 1href=12code=u8" class="srmn2 L14">
  a href="+code=ption" class="sref">ption /a> = 0;1
 27 /a>1rr" /a>;1
 28 /a>#define
 a 1href=12rtc/rtc-pcf8523.c#L9" id2 L9" class="line"1e" namn2 1L29">
 29 /a>#define
 a 1href=124" class="line" namn2 L14">
a>;1pcf8523_read /a>(struc/  a href="+code=iclass="sref">client /a>,  a href="+code=u8" class="sref">u8 /a>ef">REG_CONTROL1 /a> 0x001ption /a> = 0;1
 30 /a>1a>;1
 31 /a>#define
 a 1href=131" class="linnnnnnnnn typn2 ss="sref">rr" /a>;1
 32 /a>#define
 a 1href=13href="+code=u8" class="sref">u8 5lass="li51e" namn2 1L33">
 33 /a>#define
 a 1href=134" class="line" namn2 L14">
on /a> = 0;1REG_CONTRCONTROL1_STOP /a>    (1 << 5)1
 34 /a>#define
 a 1href=13rtc/rtc-pcf8523.c#L15" id2 L15" class="linee" namn2 1L35">
 35 /a>#define
 a 1href=13code=u8" class="srmn2 L14">
a>;1pcf8writa> = 0;1pcf8writaode=iclass="sref">client /a>,  a href="+code=u8" class="sref">u8 /a>ef">REG_CONTROL1 /a> 0x001ption /a> = 0;1
 36 /a>#define
 a 1href=136" class="linif   a h15cfcalu7">a>;1
 37 /a>1rr" /a>;1
 38 /a>struc/  a h1ref="13rtc/rtc-pcf8523.c#L9" id2 L9" class="line"1e" namn2 1L39">
 39 /a>        str1uc/  1 href="+code=r typn2 /rtc-pcf8523.c#L46" id2 L46" 5lass="li51e" namn2 1L40">
 40 /a>};1
 41 /a>1
 42 /a>static in/ 1 a hr1f="+code=pcf8523_read" class="sref">pcf8de=rt_r>;1pcf8 t=rt_r>;ode=i2c_client" class="sref">i2c_client /a> * a href="+code=client" class="sref">client /a>,  a href="+code=u8" clrtc-pcf8523.c#L43" id2 L43" class="lin1e" namn2 1L43">
 43 /a>{1
 44 /a>        str1uc/  144" class="line" namn2 L14">
  a href="+code=ption" class="sref">ption /a> = 0;1
 45 /a>         a 1href=1+code=u8" clasiclass="sref">rr" /a>;1
 46 /a>        in/1  a h14rtc/rtc-pcf8523.c#L17" id2 L17" class="lines4as4as4a1s134as4as4as134as4as4as1134as4147ode=u8" class="sref">u8 /a>a>;1pcf8523_read /a>(struc/  a href="+code=iclass="sref">client /a>,  a href="+code=u8" class="sref">u8 /a>ef">REG_CONTROL1 /a> 0x001ption /a> = 0;11
 27 /a>1a>;1
 39 /a> 4     49tc12id2 149" class="linnnnnnnnn typn2 ss="sref">rr" /a>;1
 40 /a>}51
 41 /a>15a hre51tc12id2 114" class="line" namn2 L14">
on /a> = 0;1u8 /a>ef">REG_CONTRCONTROL1_STOP /a>    (1 << 5)1
 42 /a>s5atic 52s1134as41 href="+code=u8" class="sref">u8 5lass="li51e" namn2 1L43">
 43 /a>{5
a>;1pcf8writa> = 0;1pcf8writaode=iclass="sref">client /a>,  a href="+code=u8" class="sref">u8 /a>ef">REG_CONTROL1 /a> 0x001ption /a> = 0;1u8 5lass="li51e" namn2 1L44">
 44 /a> 5     54tc12id2 154" class="linif   a h15cfcalu7">a>;1
 
5 /a> sp     5 a 1href=155" class="linnnnnnnnn typn2 ss="sref">rr" /a>;1
 46 /a> 5     56a 1href=15rtc/rtc-pcf8523.c#L17" id2 L17" class="lines4as4as4a1s134as4as4as135as4as5as1134as4157ode=u8" clas typn2 /rtc-pcf8523.c#L46" id2 L46" 5lass="li51cfcalu7">1
 27 /a>1
 39 /a> 4     49tc15id2 159tc/rtc-pcf8523.c#L15" id2 L15" class="lin16" namn2 1640">
 40 /a>}51pcf85tcf="+c_tima> = 0;1pcf85tcf="+c_timaode=i2c_client" class="srefc_device /a> * a hrefode=rtc" class="sref">rtc /odece /a> * a hrefodeers/9rttima> = 0;1rttimac" class="sref">rtc /tmce /a> * a hreftm/rtc/tc-pcf8523.c#L17" id2 L17" class="lin16" namn2 1641">
 41 /a>15a hre51tc16id2 16rtc/rrtc-pcf8523.c#L44" id2 L44" class="lin16" namn2 1642">
 42 /a>s5atic 52s1164as4162" class="lin2c_client" class="sref">i2c_client /a> * a href="+code=client" class="sref">client /a>,  a href="+code=u8" clline" naa hrtransfto_">i2c_client /a> * a hrefto_">i2c_clieode=iclass="sref">clodece /a> * a hrefodeers//rtc-pcf8523.c#L4s="sref">u8 5lass="li516" namn2 1643">
 43 /a>{5
  a href="+code=ption" class="sref">pti t=rta href="+code=p t=rt" clline" naa hrtransff">REG_SECONDS /a>  0x031ptire42 L14"fla2 href=re42vers[7/rtc-pcf8523.c#L45" id2 L45" class="lin16" namn2 1644">
 44 /a> 5     54tc16id2 164" class="lin2c_msg" class="sref">i2c_msg /a>  a href="+code=msgs" class="sref">msgs /a>[2];1
 
5 /a> sp     5 a 16ref=16code=u8" clasiclass="sref">rr" /a>;1
 
6 /a> spat class=1"ref=16rtc/rtc-pcf8523.c#L17" id2 L17" class="lin164as4as4a16134as4as4as135as4as5as1164as4167ode=u8" class="sref">u8 /a> 142 L14" class="l83.class="line" naaddf">rr" /a>;1client /a>,  a href="+c-"driclass="line" naaddf">rr" /a>;116 27 /a>1
 142 L14" class="l83.class="line" naaddf">rr" 
 142 L14"fla2 href="drivers/rtc/rtc-pcf8523.c#L46" id2 L46" 5lass="li516" namn2 1639">
 39 /a> 4     49tc16id2 164" class="line" namn2 L14">
 142 L14" class="l83.class="line" nalx_lo4">
 142 L14"lx_href="dsizeof(e=r1rtc-pcf8523.c#L46" id2 L46" 5lass="li517" namn2 1740">
 40 /a>}51
 142 L14" class="l83.class="line" nalx_lo4">
 142 L14"bufhref="d&iclass="line" na"sref">pti t=rta href="+code=p t=rt" clrtc-pcf8523.c#L46" id2 L46" 5lass="li517" namn2 1741">
 41 /a>15a hre51tc17id2 17rtc/rtc-pcf8523.c#L42" id2 L42" class="lin17" namn2 1742">
 42 /a>s5atic 52s1174as4172" class="line" namn2 L14">
 142 L14" class="l83.class="line" naaddf">rr" /a>;1client /a>,  a href="+c-"driclass="line" naaddf">rr" /a>;1
 43 /a>{5
 142 L14" class="l13.class="line" nafla2 L14">
 142 L14"fla2 href="dclass="line" naI2C_M_Rf">REG_CONTROL3_I2C_M_Rfhrefivers/rtc/rtc-pcf8523.c#L437" clas4as45ass="line17" namn2 1744">
 44 /a> 5     54tc17id2 174" class="line" namn2 L14">
 142 L14" class="l13.class="line" nalx_lo4">
 142 L14"lx_href="dsizeof(e=reg" class="s"sref">ptire42 L14"fla2 href=re42vers/rtc-pcf8523.c#L4s="sref">u8 5lass="li517" namn2 175">
 
5 /a> sp     5 a 17ref=17code=u8" class="srmn2 L14">
 142 L14" class="l13.class="line" nabufL14">
 142 L14"bufhref="d&iclassss="s"sref">ptire42 L14"fla2 href=re42versrtc-pcf8523.c#L4s="sref">u8 5lass="li517 namn2 L176">
 
6 /a> spat class=17ref=17rtc/rtc-pcf8523.c#L17" id2 L17" class="line"" namn2 L117">
 17 /a>#define
 a hr4as4177ode=u8" class="sref">u8 /a>a>;1rr" /a>;1
 ne" n">u8 5a>  a h15cfcalu7">
 27 /a>1  
  r3e=u8" class="sref">u8 /a>  a href="+co9.7
 142 L14" class="l13.class=9  /a>  a hrBcSIZNAME /a>  spat ca hrBcSIZN 5a>  a h15cfcalu7">.14.79  
 3a3.14.7)/rtc-pcf8523.c#L46" id2 L46" 5lass="li517fcalu7">17 27 /a>1a>;1
 39 /a> 4     49tc17id2 179" class="linnnnnnnnn typn2 ss="sref">rr" /a>;1
 40 /a>}51
 41 /a>15a hre51tc18id2 181" class="linif   a h15cfcalu7">re42 L14"fla2 href=re42vers[0]<="lin e" naa hrtransff">REG_SECOECONDS_OS /a> (1 << 7)1
 42 /a>s5atic 52s1184as4182" class="linu8" class /spatio
 43 /a>{5 * /spatio
 44 /a> 5     54tc18id2 18nt"> * This program is free eeeeeeeeeeeeeeee* power-upenera"dclcat always  et, butnif wed/ornotatieaGeits/rtc/rtc-pcf8523.c#L2" id2 L2" class="line"18" namn2 185">
 
5 /a> sp     5 a 18ref=18nt"> * it under the terms ofeeeeeeeeeeeeeeee* Liceoscillator isn't runnref=properly for some hreson. Thes/rtc/rtc-pcf8523.c#L2" id2 L2" class="line"18 namn2 L186">
 
6 /a> spat class=18ref=18nt"> * published by the Freeeeeeeeeeeeeeeeee* sensible Liref=Licf85orecat toa4.7 
Pren rs/or, f="dal> sgs/rtc/rtc-pcf8523.c#L2" id2 L2" class="line"18" namn2 L87">
 
7 /a> spat class=184as418nt"> */ /spatio
 
8 /a>1
 39 /a> 4     49tc18id2 189tc/rtc-pcf8523.c#L15" id2 L15" class="lin19" namn2 1940">
 40 /a>}51re42 L14"fla2 href=re42vers[0]<="lin= ~s="sref">u8 /a>ef">EG_SECOECONDS_OS /a> (1 << 7)1
 41 /a>15a hre51tc19id2 19rtc/rtc-pcf8523.c#L42" id2 L42" class="lin19" namn2 1942">
 42 /a>s5atic 52s1194as4192" class="linnnnnnnnne" namn2 L14">
a>;1pcf8writa> = 0;1pcf8writaode=iclass="sref">client /a>,  a href="+code=u8" class="sref">u8 /a>ef">EG_SECONDS /a>  0x031ptire42 L14"fla2 href=re42vers[0]/rtc-pcf8523.c#L46" id2 L46" 5lass="li519" namn2 1943">
 43 /a>{5a>;1
 44 /a> 5     54tc19id2 194" class="linnnnnnnnnnnnnnnnn typn2 ss="sref">rr" /a>;1
 
5 /a> sp     5 a 19ref=195ref="+code=u8" class="sref">u8 5lass="li519 namn2 L196">
 
6 /a> spat class=19ref=19code=u8" clasnnnnnnnne" namn2 L14">
a>;1pcf8523_read /a>(struc/  a href="+code=iclass="sref">client /a>,  a href="+code=u8" class="sref">u8 /a>ef">EG_SECONDS /a>  0x031reg /a>,2 L14"fla2 href=re42vers[0]/rtc-pcf8523.c#L46" id2 L46" 5lass="li519" namn2 L97">
 
7 /a> spat class=194as4197" class="linnnnnnnnnif   a h15cfcalu7">a>;1
 
8 /a>1rr" /a>;1
 19 /a>#define
 a hrid2 199tc/rtc-pcf8523.c#L15" id2 L15" class="lin20" namn2 2110">
 #include &l2;id2 204" class="linnnnnnnnnif   a h15cfcalu7">re42 L14"fla2 href=re42vers[0]<="lin e" naa hrtransff">REG_SECOECONDS_OS /a> (1 << 7)1
 11opa>#include &l201d2 2;1" class="linnnnnnnnnnnnnnnnn typn2 -e" naa hrtransfEAGAINNDS_OS /a> (1 &EAGAINrtc/rtc-pcf8523.c#L437" clas4as4as4as4as4a20" namn2 2012">
 12opa>#include &l202d2 202" class="lin/tc-pcf8523.c#L46" id2 L46" 5lass="li520" namn2 2013">
 13opa>#include &l203d2 203tc/rtc-pcf8523.c#L42" id2 L42" class="lin20" namn2 2014">
 14 /a>1
tmce /a> * a hreftm/rtcass="sref">u8 /a>  atm_se;1clre42 L14"fla2 href=re42vers[0]<="lin 0x7f/rtc-pcf8523.c#L46" id2 L46" 5lass="li520" namn2 2015">
 15 /a>#define
 a 205d2 20code=u8" class="srmn2 L14">
tmce /a> * a hreftm/rtcass="sref">u8 /a>  atm_mi2 L14"lx_href="dtm_mi2ss="line" naa hrtransfbcd2bi2 L14"lx_href="dbcd2bi2ode=iclass="sref">clre42 L14"fla2 href=re42vers[1]<="lin 0x7f/rtc-pcf8523.c#L46" id2 L46" 5lass="li520" namn2 L016">
 16 /a>1
tmce /a> * a hreftm/rtcass="sref">u8 /a>  atm_hou;1clre42 L14"fla2 href=re42vers[2]<="lin 0x3f/rtc-pcf8523.c#L46" id2 L46" 5lass="li520" namn2 L017">
 17 /a>#define
 a 207d2 207ode=u8" class="sref">u8 /a>tmce /a> * a hreftm/rtcass="sref">u8 /a>  atm_mday L14"lx_href="dtm_mdayss="line" naa hrtransfbcd2bi2 L14"lx_href="dbcd2bi2ode=iclass="sref">clre42 L14"fla2 href=re42vers[3]<="lin 0x3f/rtc-pcf8523.c#L46" id2 L46" 5lass="li520" namn2 L018">
 18 /a>#define
 a 208d2 2;4" class="line" naref">rr" /tmce /a> * a hreftm/rtcass="sref">u8 /a>  atm_wday L14"lx_href="dtm_wdayss="line" naa hrtransfre42 L14"fla2 href=re42vers[4]<="lin 0x7rtc-pcf8523.c#L46" id2 L46" 5lass="li520" namn2 L019">
 19 /a>#define
 a 209d2 204" class="line" namn2 L14">
tmce /a> * a hreftm/rtcass="sref">u8 /a>  atm_mo2 L14"lx_href="dtm_mo2ss="line" naa hrtransfbcd2bi2 L14"lx_href="dbcd2bi2ode=iclass="sref">clre42 L14"fla2 href=re42vers[5]<="lin 0x1f/rtc-pcf8523.c#L46" id2 L46" 5lass="li52e" namn2 2L10">
 #include &l2t;
tmce /a> * a hreftm/rtcass="sref">u8 /a>  atm_yea;1clre42 L14"fla2 href=re42vers[6]) + t;irtc-pcf8523.c#L46" id2 L46" 5lass="li52e" namn2 L111">
 11opa>#include &l2;1d2 21rtc/rtc-pcf8523.c#L42" id2 L42" class="lin2e" namn2 2L12">
 12opa>#include &l2t;rr" /">rtvalid_tmce /a> * a href">rtvalid_tmode=iclass="sref">cltmce /a> * a hreftm/rtc/rtc-pcf8523.c#L46" id2 L46" 5lass="li52e" namn2 2L13">
 13opa>#include &l2t;
 14 /a>1
 15 /a>#define
 a 2href=215"+code=pcf8523_read" class="sref">pcf8">rt 
t_tima> = 0;1pcf85tcf 
t_timaode=i2c_client" class="srefc_device /a> * a hrefode=rtc" class="sref">rtc /odece /a> * a hrefodeers/9rttima> = 0;1rttimac" class="sref">rtc /tmce /a> * a hreftm/rtc/tc-pcf8523.c#L17" id2 L17" class="lin2e" namn2 2L16">
 16 /a>1
 17 /a>#define
 a 2href=217ode=u8" clas2c_client" class="sref">i2c_client /a> * a href="+code=client" class="sref">client /a>,  a href="+code=u8" clline" naa hrtransfto_">i2c_client /a> * a hrefto_">i2c_clieode=iclass="sref">clodece /a> * a hrefodeers//rtc-pcf8523.c#L4s="sref">u8 5lass="li52e" namn2 2L18">
 18 /a>#define
 a 2href=218" class="lin2c_msg" class="sref">i2c_msg /a>  a href="+code=msgs" class="sref">msgs /a79  
 3a3rtc/rtc-pcf8523.c#L46" id2 L46" 5s4as4as452e" namn2 2L19">
 19 /a>#define
 a 2href=214" class="line" namn2 L14">
 * a href="+code=ptionp"ss="s"sref">ptire42 L14"fla2 href=re42vers[8/rtc-pcf8523.c#L45" id2 L45" class="lin2e" namn2 2L20">
 20 /a>1rr" /a>;1
 21 /a>#define
 a 2href=22rtc/rtc-pcf8523.c#L42" id2 L42" class="lin2e" namn2 2L22">
 22 /a>#define
 a 2href=222" class="line" namn2 L14">
a>;1pcf8 top_r>;1pcf8 top_r>;ode=iclass="sref">client /a>,  a href="+code=u8" cl/rtc-pcf8523.c#L4s="sref">u8 5lass="li52e" namn2 2L23">
 23 /a>#define
 a 2href=223" class="linif   a h15cfcalu7">a>;1
 24 /a>#define
 a 2href=224" class="linnnnnnnnn typn2 ss="sref">rr" /a>;1
 25 /a>#define
 a 2href=225ref="+code=u8" class="sref">u8 5lass="li52e" namn2 2L26">
 26 /a>#define
 a 2href=22code=u8" class="srmn2 L14">
re42 L14"fla2 href=re42vers[0]REG_SECONDS /a>  0x031
 27 /a>1u8 /a>re42 L14"fla2 href=re42vers[1]cltmce /a> * a hreftm/rtcass="sref">u8 /a>  atm_se;1u8 5lass="li52e" namn2 2L28">
 28 /a>#define
 a 2href=224" class="line" naref">rr" /re42 L14"fla2 href=re42vers[2]cltmce /a> * a hreftm/rtcass="sref">u8 /a>  atm_mi2 L14"lx_href="dtm_mi2ss="/rtc-pcf8523.c#L4s="sref">u8 5lass="li52e" namn2 2L29">
 29 /a>#define
 a 2href=224" class="line" namn2 L14">
re42 L14"fla2 href=re42vers[3]cltmce /a> * a hreftm/rtcass="sref">u8 /a>  atm_hou;1u8 5lass="li52e" namn2 2L30">
 30 /a>1
re42 L14"fla2 href=re42vers[4]cltmce /a> * a hreftm/rtcass="sref">u8 /a>  atm_mday L14"lx_href="dtm_mdayss="/rtc-pcf8523.c#L4s="sref">u8 5lass="li52e" namn2 2L31">
 31 /a>#define
 a 2href=234" class="line" namn2 L14">
re42 L14"fla2 href=re42vers[5] * a hreftm/rtcass="sref">u8 /a>  atm_wday L14"lx_href="dtm_wdayss="rtc-pcf8523.c#L4s="sref">u8 5lass="li52e" namn2 2L32">
 32 /a>#define
 a 2href=232" class="line" namn2 L14">
re42 L14"fla2 href=re42vers[6]cltmce /a> * a hreftm/rtcass="sref">u8 /a>  atm_mo2 L14"lx_href="dtm_mo2ss="/rtc-pcf8523.c#L4s="sref">u8 5lass="li52e" namn2 2L33">
 33 /a>#define
 a 2href=234" class="line" namn2 L14">
re42 L14"fla2 href=re42vers[7/cltmce /a> * a hreftm/rtcass="sref">u8 /a>  atm_yea;1u8 5lass="li52e" namn2 2L34">
 34 /a>#define
 a 2href=23rtc/rtc-pcf8523.c#L15" id2 L15" class="lin2e" namn2 2L35">
 35 /a>#define
 a 2href=23code=u8" class="srmn2 L14">
 1479  
 3a3rtc/ne" naaddf">rr" /a>;1client /a>,  a href="+c-"driclass="line" naaddf">rr" /a>;1
 36 /a>#define
 a 2href=23code=u8" class="srmn2 L14">
 1479  
 3a3rtc/ne" naaddf">rr" 
 142 L14"fla2 href="drivers/rtc/rtc-pcf8523.c#L46" id2 L46" 5lass="li52e" namn2 2L37">
 37 /a>1u8 /a> 1479  
 3a3rtc/ne" naaddf">rr" 142 L14"lx_href="dsizeof(e=reg" class="s"sref">ptire42 L14"fla2 href=re42vers/rtc-pcf8523.c#L4s="sref">u8 5lass="li52e" namn2 2L38">
 38 /a>struc/  a h2ref="234" class="line" namn2 L14">
 1479  
 3a3rtc/ne" naaddf">rr" 142 L14"bufhref="d&iclassss="s"sref">ptire42 L14"fla2 href=re42versrtc-pcf8523.c#L4s="sref">u8 5lass="li52e" namn2 2L39">
 39 /a>        str2uc/  239tc/rtc-pcf8523.c#L15" id2 L15" class="lin2e" namn2 2L40">
 40 /a>};1
a>;1rr" /a>;1
 ne" n">u8 5a>  a h15cfcalu7">
 27 /a>1  
  r3e=u8" class="sref">u8 /a>  a href="+co9.7pti 1479  
 3a3rtc/, 1/rtc-pcf8523.c#L46" id2 L46" 5lass="li52e" namn2 2L41">
 41 /a>1a>;1
 42 /a>static in/ 2 a hr242" class="linu8" class /spatio
 43 /a>{1 * /spatio
 44 /a>        str2uc/  24nt"> * This program is free eeeeeeeeeeeeeeee* Liat rs/ors arecagnorednif LiceRTC /ornotabe  t=rtednsos/rtc/rtc-pcf8523.c#L2" id2 L2" class="line"2e" namn2 2L45">
 45 /a>         a 2href=24nt"> * it under the terms ofeeeeeeeeeeeeeeee* Liat we have a chanvi toapropagate Liceoriginal rs/orrs/rtc/rtc-pcf8523.c#L7" id2 L7" class="line"2e" namn2 2L46">
 46 /a>        in/2  a h24nt"> * published by the Freeeeeeeeeeeeeeeeee*rs/rtc/rtc-pcf8523.c#L27" id2 L27" class="lin2s4as4as4a2s134as4as4as134as4as4as1234as4247" class="linnnnnnnnns="sref">u8 /a>ef">pcf8de=rt_r>;1pcf8 t=rt_r>;ode=iclass="sref">client /a>,  a href="+code=u8" cl/rtc-pcf8523.c#L4s="sref">u8 5lass="li52cfcalu7">2
 27 /a>1rr" /a>;1
 39 /a> 4     49tc22id2 249" class="lin}tc-pcf8523.c#L46" id2 L46" 5lass="li52e" namn2 2L40">
 40 /a>}51
 41 /a>15a hre51tc22id2 254" class="lin typn2 s="sref">u8 /a>ef">pcf8de=rt_r>;1pcf8 t=rt_r>;ode=iclass="sref">client /a>,  a href="+code=u8" cl/rtc-pcf8523.c#L4s="sref">u8 5lass="li52e" namn2 2L42">
 42 /a>s5atic 52s1234as425code=}tc-pcf8523.c#L46" id2 L46" 5lass="li52e" namn2 2L43">
 43 /a>{5
 44 /a> 5     54tc22id2 254" cl#ifdef s="sref">u8 /a>CONFIG_RTC_INTF_DEVa>,  a href="+cCONFIG_RTC_INTF_DEVtc/rtc-pcf8523.c#L42" id2 L42" class="lin2e" namn2 2L5">
 
5 /a> sp     5 a 2href=255"+code=pcf8523_read" class="sref">pcf8">rtioctl1pcf8">rtioctlode=i2c_client" class="srefc_device /a> * a hrefode=rtc" class="sref">rtc /odece /a> * a hrefodeers/9
 46 /a> 5     56a 2href=25code=u8" clasnnnnnnnnnnnnnnnnnnnnnunf="dednlong_read" class="srar479  
 ar4/rtc/tc-pcf8523.c#L17" id2 L17" class="lin2s4as4as4a2s134as4as4as135as4as5as1234as4257rtc/rtc-pcf8523.c#L44" id2 L44" class="lin2cfcalu7">2
 27 /a>1i2c_mc_client /a> * a href="+code=client" class="sref">client /a>,  a href="+code=u8" clline" naa hrtransfto_">i2c_client /a> * a hrefto_">i2c_clieode=iclass="sref">clodece /a> * a hrefodeers//rtc-pcf8523.c#L4s="sref">u8 5lass="li52e" namn2 2539">
 39 /a> 4     49tc25id2 254" class="line" namn2 L14">
 * a href="+code=ptionp"ss="s"sref">ption /a> = 0;1
 40 /a>}51rr" / ty L14"fla2 href=re8" cllin0ass="sref">u8 /a>a>;1
 41 /a>15a hre51tc26id2 26rtc/rtc-pcf8523.c#L42" id2 L42" class="lin26" namn2 2642">
 42 /a>s5atic 52s1264as4262" class="lin2witch   a h15cfcalu7">cmd L14"lx_href="dcmders/r/rtc-pcf8523.c#L39" id2 L39" class="lin26" namn2 2643">
 43 /a>{5
 44 /a> 5     54tc26id2 264" class="linnnnnnnnne" namn2 L14">
a>;1pcf8523_read /a>(struc/  a href="+code=iclass="sref">client /a>,  a href="+code=u8" class="sref">u8 /a>ef">REG_CONTROL3 /a> 0x021ption /a> = 0;1
 
5 /a> sp     5 a 26ref=265" class="linnnnnnnnnif   a h15cfcalu7">a>;1
 
6 /a> spat class=2"ref=26code=u8" clasnnnnnnnnnnnnnnnn typn2 ss="sref">rr" /a>;126 27 /a>1on /a> = 0;1u8 /a>ef">REG_CONT_BLFROL3 /a> 0x021
 39 /a> 4     49tc26id2 269" class="linnnnnnnnnnnnnnnnne" namn2 L14">
 ty L14"fla2 href=re8" cllin1rtc-pcf8523.c#L46" id2 L46" 5lass="li527" namn2 2740">
 40 /a>}51
 41 /a>15a hre51tc27id2 271" class="linnnnnnnnnif   a h15cfcalu7">copy_to_us="+co9.7
__us="+co9.7  
 ar4/rtc9<="line" naref">reg /a>y L14"fla2 href=re8" cl,reg" claicl))/tc-pcf8523.c#L17" id2 L17" class="lin27" namn2 2742">
 42 /a>s5atic 52s1274as4272" class="linu8" clasnnnnnnnn typn2 -e" naa hrtransfEFAULT L14"fla2 href=EFAULTrtc/rtc-pcf8523.c#L437" clas4as4as4as4as4a27" namn2 2743">
 43 /a>{5
 44 /a> 5     54tc27id2 274" class="linnnnnnnnn typn2 /rtc-pcf8523.c#L46" id2 L46" 5lass="li527" namn2 275">
 
5 /a> sp     5 a 27ref=27code=u8" clasdefault:tc-pcf8523.c#L39" id2 L39" class="lin27 namn2 L276">
 
6 /a> spat class=27ref=27code=u8" clasnnnnnnnn typn2 -e" naa hrtransfENOIOCTLCMTROL3_I2C_M_RfhrENOIOCTLCMTrtc/rtc-pcf8523.c#L437" clas4as4as4as4as4a274as4as4a2117">
 17 /a>#define
 a 2r4as4277ode=u8" clas}tc-pcf8523.c#L46" id2 L46" 5lass="li527fcalu7">27 27 /a>1
 39 /a> 4     49tc27id2 279" cl#elsetc-pcf8523.c#L437" clas4as4as4as4as4a28" namn2 2840">
 40 /a>}51}5_read" class="sref">pcf8">rtioctl1pcf8">rtioctlode=_read" class="srNULTROL1_CAP_SEL /aNULTtc/rtc-pcf8523.c#L42" id2 L42" class="lin28" namn2 2841">
 41 /a>15a hre51tc28id2 281" cl#endiftc-pcf8523.c#L42" id2 L42" class="lin28" namn2 2842">
 42 /a>s5atic 52s1284as428href="+code=u8" class="sref">u8 5lass="li528" namn2 2843">
 43 /a>{5 de=pcf8constrt>
 43_op2 L14"fla2 href=r>rt>
 43_op2ode=_read" class="sref">pcf8">rtop2 L14"fla2 href=ef">pcf8">rtop2" cllinrtc-pcf8523.c#L39" id2 L39" class="lin28" namn2 2844">
 44 /a> 5     54tc28id2 284" class="linne" naaddf">rr" ="+c_tima> = 0;1pcf85tcf="+c_tima> = 0;1pcf85tcf="+c_timaode=9tc-pcf8523.c#L42" id2 L42" class="lin28" namn2 285">
 
5 /a> sp     5 a 28ref=285" class="linne" naaddf">rr"  
t_tima> = 0;1pcf85tcf 
t_tima> = 0;1pcf85tcf 
t_timaode=9tc-pcf8523.c#L42" id2 L42" class="lin28 namn2 L286">
 
6 /a> spat class=28ref=286" class="linne" naaddf">rr" ioctl1pcf85tcfioctl1pcf8">rtioctlode=9tc-pcf8523.c#L42" id2 L42" class="lin284as4as4a287">
 
7 /a> spat class=284as428nt"> }rtc-pcf8523.c#L437" clas4as4as4as4as4a28 namn2 L288">
 
8 /a>1
 39 /a> 4     49tc28id2 289tc/rde=pcf8523_read" class="sref">pcf8proba> = 0;1pcf8probaode=i2c_client" class="sref">i2c_client /a> * a href="+code=client" class="sref">client /a>,  a href="+code=u8" clatc-pcf8523.c#L9" id2 L9" class="line"29" namn2 2940">
 40 /a>}51(struc/="+code=rt_i_ient" class="sref">cli_read /a>(struc/=d/rtc/tc-pcf8523.c#L17" id2 L17" class="lin29" namn2 2941">
 41 /a>15a hre51tc29id2 29rtc/rrtc-pcf8523.c#L44" id2 L44" class="lin29" namn2 2942">
 42 /a>s5atic 52s1294as4292" class="lintc_device" class="sref class=> = 0;1pcfient" class="sref">clef"> = 0;1
 43 /a>{5rr" /a>;1
 44 /a> 5     54tc29id2 29rtc/rtc-pcf8523.c#L15" id2 L15" class="lin29" namn2 295">
 
5 /a> sp     5 a 29ref=29code=u8" clasif  !nt" class="sref">i2check_functionality L14"lx_href="d">i2check_functionality 5a>  a h15cfcalu7">
 27 /a>1  
  r3e=u8" class="sref">u8 /a>  a href="+co9.7u8 /a>  aefivFUNC_efi+co9.7
 
6 /a> spat class=29ref=29code=u8" clasnnnnnnnn typn2 -e" naa hrtransfENODEVa>,  a href="+cENODEVrtc/rtc-pcf8523.c#L437" clas4as4as4as4as4a294as4as4a297">
 
7 /a> spat class=294as4297ode=tc-pcf8523.c#L437" clas4as4as4as4as4a29 namn2 L298">
 
8 /a>1
ef"> = 0;1reg /
 27 /a>1  
  r3e=u8" class="sref">u8 /a>  aodece /a> * a hrefodeers/9clef"> = 0;1u8 /a>  aGFP_KERNETROL1_CAP_SEL /aGFP_KERNET/rtc/rtc-pcf8523.c#L46" id2 L46" 5lass="li529" namn2 2119">
 19 /a>#define
 a 2rid2 299ode=u8" clasif  !nt" class="srefef"> = 0;1
 #include &l3;id2 304" class="linnnnnnnnn typn2 -e" naa hrtransfENOMEMa>,  a href="+cENOMEMrtc/rtc-pcf8523.c#L437" clas4as4as4as4as4a30" namn2 3011">
 11opa>#include &l301d2 30rtc/rtc-pcf8523.c#L42" id2 L42" class="lin30" namn2 3012">
 12opa>#include &l302d2 302" class="line" namn2 L14">
a>;1pcf8 elect_capacitanvi1pcf8 elect_capacitanviode=iclass="sref">client /a>,  a href="+code=u8" class="sref">u8 /a>c_di1
 13opa>#include &l303d2 303" class="linif   a h15cfcalu7">a>;1
 14 /a>1rr" /a>;1
 15 /a>#define
 a 305d2 305ref="+code=u8" class="sref">u8 5lass="li530" namn2 3016">
 16 /a>1
a>;1pcf8 et_pmce /a> * a hrefef">pcf8 et_pmode=iclass="sref">client /a>,  a href="+code=u8" clasi/rtc-pcf8523.c#L4s="sref">u8 5lass="li530" namn2 3017">
 17 /a>#define
 a 307d2 307ode=u8" clasif   a h15cfcalu7">a>;1
 
8 /a>1rr" /a>;1
 19 /a>#define
 a 309d2 309tc/rtc-pcf8523.c#L15" id2 L15" class="lin3e" namn2 3L10">
 #include &l3t;
ef"> = 0;1u8 /a>  ar>;1rtode=rt_regisf="+co9.7rtode=rt_regisf=" 5a> ="line" naref">reg /
 27 /a>1  
  r3e=u8" class="sref">u8 /a>  aodece /a> * a hrefodeers/9u8 /a>  aDRIVER_NAMEce /a> * a hrefDRIVER_NAME" clatc-pcf8523.c#L9" id2 L9" class="line"3e" namn2 3111">
 11opa>#include &l3;1d2 311" class="linnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnn="line" naref">reg /ef">pcf8">rtop2 L14"fla2 href=ef">pcf8">rtop2" cl9u8 /a>  aTHIS_MODULEce /a> * a hrefTHIS_MODULE/rtc/rtc-pcf8523.c#L46" id2 L46" 5lass="li53e" namn2 3L12">
 12opa>#include &l3t;IS_ERR+co9.7clef"> = 0;1u8 /a>  ar>;1
 13opa>#include &l3t;rr" /PTR_ERR+co9.7clef"> = 0;1u8 /a>  ar>;1
 14 /a>1
 15 /a>#define
 a 3href=31code=u8" class="srmn2 L14">
">i2 et_r3e=u8data L14"lx_href="d">i2 et_r3e=u8dataode=iclass="sref">client /a>,  a href="+code=u8" class="sref">u8 /a>ef"> = 0;1
 16 /a>1
 17 /a>#define
 a 3href=317ode=u8" clas typn2 /rtc-pcf8523.c#L46" id2 L46" 5lass="li53e" namn2 3L18">
 18 /a>#define
 a 3href=314" cl/tc-pcf8523.c#L46" id2 L46" 5lass="li53e" namn2 3L19">
 19 /a>#define
 a 3href=319tc/rtc-pcf8523.c#L15" id2 L15" class="lin3e" namn2 3L20">
 20 /a>1(struc/="+code=rt_i_ient"e" naref">reg /ef">pcf8i_read /a>(struc/ef">pcf8i_ient[]linrtc-pcf8523.c#L39" id2 L39" class="lin3e" namn2 3L21">
 21 /a>#define
 a 3href=321" class="lin{ss /spatio" class="s/rtc/rasi }atc-pcf8523.c#L9" id2 L9" class="line"3e" namn2 3L22">
 22 /a>#define
 a 3href=322" class="lin{s}tc-pcf8523.c#L46" id2 L46" 5lass="li53e" namn2 3L23">
 23 /a>#define
 a 3href=3cfient}rtc-pcf8523.c#L437" clas4as4as4as4as4a3e" namn2 3L24">
 24 /a>#define
 a 3href=324" cle" naref">reg /MODULE_DEVICE_TABLEce /a> * a hrefMODULE_DEVICE_TABLEode=iclass="sref">cl="+read /a>(struc/="+" class="sref">u8 /a>ef">pcf8i_read /a>(struc/ef">pcf8i_ient)rtc-pcf8523.c#L46" id2 L46" 5lass="li53e" namn2 3L25">
 25 /a>#define
 a 3href=325ref="+code=u8" class="sref">u8 5lass="li53e" namn2 3L26">
 26 /a>#define
 a 3href=32code=#ifdef s="sref">u8 /a>CONFIG_OFROL3 /a> 0x021u8 5lass="li53e" namn2 3L27">
 27 /a>1reg /ef">pcf8ofcmatchread /a>(struc/ef">pcf8ofcmatchient[]linrtc-pcf8523.c#L39" id2 L39" class="lin3e" namn2 3L28">
 28 /a>#define
 a 3href=324" class="lin{nne" naaddf">rr" comp=pcbli1"nxp, class="s/rtc/r }atc-pcf8523.c#L9" id2 L9" class="line"3e" namn2 3L29">
 29 /a>#define
 a 3href=324" class="lin{s}tc-pcf8523.c#L46" id2 L46" 5lass="li53e" namn2 3L30">
 30 /a>1
 31 /a>#define
 a 3href=334" cle" naref">reg /MODULE_DEVICE_TABLEce /a> * a hrefMODULE_DEVICE_TABLEode=iclass="sref">clo"> = 0;1u8 /a>ef">pcf8ofcmatchread /a>(struc/ef">pcf8ofcmatchient)rtc-pcf8523.c#L46" id2 L46" 5lass="li53e" namn2 3L32">
 32 /a>#define
 a 3href=332" cl#endiftc-pcf8523.c#L42" id2 L42" class="lin3e" namn2 3L33">
 33 /a>#define
 a 3href=333tc/rtc-pcf8523.c#L42" id2 L42" class="lin3e" namn2 3L34">
 34 /a>#define
 a 3href=33rtc/rde=pcf8tc_device" class="sref="+coc#L42read /a>(struc/="+coc#L42ient"e" naref">reg /ef">pcf8oc#L42read /a>(struc/ef">pcf8oc#L42" cllinrtc-pcf8523.c#L39" id2 L39" class="lin3e" namn2 3L35">
 35 /a>#define
 a 3href=335" class="linne" naaddf">rr" oc#L42read /a>(struc/oc#L42" cllinrtc-pcf8523.c#L39" id2 L39" class="lin3e" namn2 3L36">
 36 /a>#define
 a 3href=33code=u8" clasnnnnnnnnne" naaddf">rr" ine
read /a>(struc/ine
ss="line" naa hrtransfDRIVER_NAMEce /a> * a hrefDRIVER_NAME" clatc-pcf8523.c#L9" id2 L9" class="line"3e" namn2 3L37">
 37 /a>1rr" own42read /a>(struc/own42ss="line" naa hrtransfTHIS_MODULEce /a> * a hrefTHIS_MODULE/rtcatc-pcf8523.c#L9" id2 L9" class="line"3e" namn2 3L38">
 38 /a>struc/  a h3ref="338" class="linnnnnnnnnne" naaddf">rr" ofcmatch_tabli1(struc/ofcmatch_pt2ode=iclass="sref">clef">pcf8ofcmatchread /a>(struc/ef">pcf8ofcmatchient)atc-pcf8523.c#L9" id2 L9" class="line"3e" namn2 3L39">
 39 /a>        str3uc/  339" class="lin}atc-pcf8523.c#L9" id2 L9" class="line"3e" namn2 3L40">
 40 /a>};1rr" proba> = 0;1pcf8proba> = 0;1pcf8probaode=atc-pcf8523.c#L9" id2 L9" class="line"3e" namn2 3L41">
 41 /a>1rr" id_tabli1pcf8i_read /a>(struc/ef">pcf8i_ientatc-pcf8523.c#L9" id2 L9" class="line"3e" namn2 3L42">
 42 /a>static in/ 3 a hr342" cl}rtc-pcf8523.c#L437" clas4as4as4as4as4a3e" namn2 3L43">
 43 /a>{1 *" naa hrtransfmodule_="+coc#L42read /a>(struc/module_="+coc#L42ode=iclass="sref">clef">pcf8oc#L42read /a>(struc/ef">pcf8oc#L42" cl)rtc-pcf8523.c#L46" id2 L46" 5lass="li53e" namn2 3L44">
 44 /a>        str3uc/  34rtc/rtc-pcf8523.c#L15" id2 L15" class="lin3e" namn2 3L45">
 45 /a>         a 3href=34nt"> *" naref">reg /MODULE_AUTHOR+co9.7"Thierry Redref=s/rtthierry.redref@avionic-def="d.dess=""s/rtc/r)rtc-pcf8523.c#L46" id2 L46" 5lass="li53e" namn2 3L46">
 46 /a>        in/3  a h34nt"> *" naref">reg /MODULE_DESCRIPTIONNDS_OS /a> (1 &MODULE_DESCRIPTIONode=ic /spatio"NXP PCFass=eRTC .c#L46"s/rtc/r)rtc-pcf8523.c#L46" id2 L46" 5lass="li53e" namn2 3s134as4as4as134as4as4as1334as4347" cl*" naref">reg /MODULE_LICENSEce /a> * a hrefMODULE_LICENSEode=ic /spatio"GPL v2"s/rtc/r)rtc-pcf8523.c#L46" id2 L46" 5lass="li53e" namn2 3
 27 /a>1


1 Ticeoriginal LXR softwarecby Licec-pcf8523http://sourc85orge.net/projects/lx"+>LXR y thunity 5a>, Lirs experihe Fal L46"ioncby c-pcf8523mailto:lx"@ hrux.no">lx"@ hrux.no 5a>.
1 lx". hrux.no kindly hostednby c-pcf8523http://www.redpill- hrpro.no">Redpill Lhrpro Aivers9