BigW Consortium Gitlab
Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
mangoh-drivers
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Forest Godfrey
mangoh-drivers
Commits
f2865e7f
Commit
f2865e7f
authored
Jan 21, 2019
by
David Frey
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
rtc-pcf85063: remove explicit reg write in probe
Call pcf85063_set_clkout_freq() rather than manually writing the control_2 register in the probe function.
parent
f72d0e55
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
9 deletions
+3
-9
rtc-pcf85063.c
linux_kernel_modules/rtc-pcf85063/rtc-pcf85063.c
+3
-9
No files found.
linux_kernel_modules/rtc-pcf85063/rtc-pcf85063.c
View file @
f2865e7f
...
...
@@ -340,16 +340,10 @@ static int pcf85063_probe(struct i2c_client *client,
goto
exit
;
}
/*
* By default this chip output's square waves at 32768 Hz - let's set to
* off or COF[2:0] == 7
*/
err
=
i2c_smbus_write_byte_data
(
client
,
PCF85063_REG_CTRL2
,
(
u8
)
0x7
);
if
(
err
)
{
dev_err
(
&
client
->
dev
,
"Failed to write register PCF85063_REG_CTRL2
\n
"
);
/* Initialize output frequency to 0 Hz (disabled) */
err
=
pcf85063_set_clkout_freq
(
&
client
->
dev
,
0
);
if
(
err
)
goto
exit
;
}
err
=
pcf85063_sysfs_register
(
&
client
->
dev
);
if
(
err
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment