<feed xmlns='http://www.w3.org/2005/Atom'>
<title>kernel.git/drivers/rtc/rtc-sh.c, branch linux-4.11.y</title>
<subtitle>Hosts the 0x221E linux distro kernel.
</subtitle>
<id>https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-4.11.y</id>
<link rel='self' href='https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-4.11.y'/>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/'/>
<updated>2017-01-11T16:23:06Z</updated>
<entry>
<title>rtc: constify rtc_class_ops structures</title>
<updated>2017-01-11T16:23:06Z</updated>
<author>
<name>Bhumika Goyal</name>
</author>
<published>2017-01-05T16:55:05Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=8bc57e7f11971665b4a7886305dffcd27213d718'/>
<id>urn:sha1:8bc57e7f11971665b4a7886305dffcd27213d718</id>
<content type='text'>
Declare rtc_class_ops structures as const as they are only passed
as an argument to the function devm_rtc_device_register. This argument
is of type const struct rtc_class_ops *, so rtc_class_ops structures
having this property can be declared const.
Done using Coccinelle:

@r1 disable optional_qualifier @
identifier i;
position p;
@@
static struct rtc_class_ops i@p = {...};

@ok1@
identifier r1.i;
position p;
@@
devm_rtc_device_register(...,&amp;i@p,...)

@bad@
position p!={r1.p,ok1.p};
identifier r1.i;
@@
i@p

@depends on !bad disable optional_qualifier@
identifier r1.i;
@@
+const
struct rtc_class_ops i;

Signed-off-by: Bhumika Goyal &lt;bhumirks@gmail.com&gt;
Signed-off-by: Alexandre Belloni &lt;alexandre.belloni@free-electrons.com&gt;
</content>
</entry>
<entry>
<title>rtc: sh: don't validate alarm time provided to .set_alarm</title>
<updated>2016-07-11T21:22:33Z</updated>
<author>
<name>Uwe Kleine-König</name>
</author>
<published>2016-06-28T08:43:48Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=8441189e696db0134f23a2791ab3cc225a8ee2e5'/>
<id>urn:sha1:8441189e696db0134f23a2791ab3cc225a8ee2e5</id>
<content type='text'>
The rtc core doesn't give broken dates to a driver's .set_alarm
callback, so there should be no need for validation.

Signed-off-by: Uwe Kleine-König &lt;uwe@kleine-koenig.org&gt;
Signed-off-by: Alexandre Belloni &lt;alexandre.belloni@free-electrons.com&gt;
</content>
</entry>
<entry>
<title>rtc: sh: drop bogus assignment of tm_year in .read_alarm</title>
<updated>2016-07-11T21:22:32Z</updated>
<author>
<name>Uwe Kleine-König</name>
</author>
<published>2016-06-28T08:43:47Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=726a54cd307d109bb31af9b071c4fdbf51b66e5b'/>
<id>urn:sha1:726a54cd307d109bb31af9b071c4fdbf51b66e5b</id>
<content type='text'>
This rtc doesn't support triggering on years, so don't assign tm_year
instead of claiming the alarm is to trigger in year 67435.

Signed-off-by: Uwe Kleine-König &lt;uwe@kleine-koenig.org&gt;
Signed-off-by: Alexandre Belloni &lt;alexandre.belloni@free-electrons.com&gt;
</content>
</entry>
<entry>
<title>rtc: remove useless DRV_VERSION</title>
<updated>2016-05-20T10:33:51Z</updated>
<author>
<name>Alexandre Belloni</name>
</author>
<published>2016-03-31T13:07:26Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=fa5691131a87a36ee2d535aa3e8886e4e4f1e9f3'/>
<id>urn:sha1:fa5691131a87a36ee2d535aa3e8886e4e4f1e9f3</id>
<content type='text'>
Many drivers are defining a DRV_VERSION. This is often only used for
MODULE_VERSION and sometimes to print an info message at probe time. This
is kind of pointless as they are all versionned with the kernel anyway.
Also the core will print a message when a new rtc is found.

Signed-off-by: Alexandre Belloni &lt;alexandre.belloni@free-electrons.com&gt;
</content>
</entry>
<entry>
<title>rtc: drop owner assignment from platform_drivers</title>
<updated>2014-10-20T14:21:31Z</updated>
<author>
<name>Wolfram Sang</name>
</author>
<published>2014-10-20T14:21:31Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=0929ae376ef32591a5f13870a703efc2901bfab9'/>
<id>urn:sha1:0929ae376ef32591a5f13870a703efc2901bfab9</id>
<content type='text'>
A platform_driver does not need to set an owner, it will be populated by the
driver core.

Signed-off-by: Wolfram Sang &lt;wsa@the-dreams.de&gt;
</content>
</entry>
<entry>
<title>drivers/rtc/rtc-sh.c: use dev_get_platdata()</title>
<updated>2013-11-13T03:09:30Z</updated>
<author>
<name>Jingoo Han</name>
</author>
<published>2013-11-12T23:10:52Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=e58c18d434a44d0d4402ea08f08c6ed0f4c4ff72'/>
<id>urn:sha1:e58c18d434a44d0d4402ea08f08c6ed0f4c4ff72</id>
<content type='text'>
Use the wrapper function for retrieving the platform data instead of
accessing dev-&gt;platform_data directly.  This is a cosmetic change to make
the code simpler and enhance the readability.

Signed-off-by: Jingoo Han &lt;jg1.han@samsung.com&gt;
Signed-off-by: Andrew Morton &lt;akpm@linux-foundation.org&gt;
Signed-off-by: Linus Torvalds &lt;torvalds@linux-foundation.org&gt;
</content>
</entry>
<entry>
<title>rtc: rtc-sh: use devm_*() functions</title>
<updated>2013-07-03T23:07:55Z</updated>
<author>
<name>Jingoo Han</name>
</author>
<published>2013-07-03T22:07:11Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=0209affa6eefb4bb8288f8a0e678b1b36facabd5'/>
<id>urn:sha1:0209affa6eefb4bb8288f8a0e678b1b36facabd5</id>
<content type='text'>
Use devm_*() functions to make cleanup paths simpler.

Signed-off-by: Jingoo Han &lt;jg1.han@samsung.com&gt;
Signed-off-by: Andrew Morton &lt;akpm@linux-foundation.org&gt;
Signed-off-by: Linus Torvalds &lt;torvalds@linux-foundation.org&gt;
</content>
</entry>
<entry>
<title>rtc: rtc-sh: remove unnecessary platform_set_drvdata()</title>
<updated>2013-07-03T23:07:51Z</updated>
<author>
<name>Jingoo Han</name>
</author>
<published>2013-07-03T22:06:36Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=f50c8bf73f74c304c213371de35f4a4d7fafcaf9'/>
<id>urn:sha1:f50c8bf73f74c304c213371de35f4a4d7fafcaf9</id>
<content type='text'>
The driver core clears the driver data to NULL after device_release or
on probe failure, since commit 0998d063100 ("device-core: Ensure drvdata
= NULL when no driver is bound").  Thus, it is not needed to manually
clear the device driver data to NULL.

Signed-off-by: Jingoo Han &lt;jg1.han@samsung.com&gt;
Signed-off-by: Andrew Morton &lt;akpm@linux-foundation.org&gt;
Signed-off-by: Linus Torvalds &lt;torvalds@linux-foundation.org&gt;
</content>
</entry>
<entry>
<title>rtc: rtc-sh: switch to using SIMPLE_DEV_PM_OPS</title>
<updated>2013-04-30T01:28:32Z</updated>
<author>
<name>Jingoo Han</name>
</author>
<published>2013-04-29T23:20:00Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=0ed5054447462976b7577ccf08d422c93ea38095'/>
<id>urn:sha1:0ed5054447462976b7577ccf08d422c93ea38095</id>
<content type='text'>
Switch to using the SIMPLE_DEV_PM_OPS macro to declare the driver's
pm_ops.  It reduces code size.  Also, CONFIG_PM_SLEEP is added to prevent
build warning when CONFIG_PM_SLEEP is not selected.

Signed-off-by: Jingoo Han &lt;jg1.han@samsung.com&gt;
Signed-off-by: Andrew Morton &lt;akpm@linux-foundation.org&gt;
Signed-off-by: Linus Torvalds &lt;torvalds@linux-foundation.org&gt;
</content>
</entry>
<entry>
<title>rtc: rtc-sh: use module_platform_driver_probe()</title>
<updated>2013-04-30T01:28:24Z</updated>
<author>
<name>Jingoo Han</name>
</author>
<published>2013-04-29T23:18:51Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=deed5a9dc94cf375d4cdd4330b34fcdfc0e41a74'/>
<id>urn:sha1:deed5a9dc94cf375d4cdd4330b34fcdfc0e41a74</id>
<content type='text'>
Use module_platform_driver_probe() macro which makes the code smaller and
simpler.

Signed-off-by: Jingoo Han &lt;jg1.han@samsung.com&gt;
Acked-by: Paul Mundt &lt;lethal@linux-sh.org&gt;
Signed-off-by: Andrew Morton &lt;akpm@linux-foundation.org&gt;
Signed-off-by: Linus Torvalds &lt;torvalds@linux-foundation.org&gt;
</content>
</entry>
</feed>
