diff options
author | Andy Shevchenko <andriy.shevchenko@linux.intel.com> | 2018-02-22 14:59:20 +0200 |
---|---|---|
committer | Ingo Molnar <mingo@kernel.org> | 2018-02-23 08:20:30 +0100 |
commit | 492a1abd61e4b4f78c1c5804840a304a9e32da04 (patch) | |
tree | 326e956e0e6b448dffa183819cd3b474126e3a31 /arch/x86/pci/direct.c | |
parent | 24e8db62c135e142e23bec597adb135bd6a8828f (diff) | |
download | lwn-492a1abd61e4b4f78c1c5804840a304a9e32da04.tar.gz lwn-492a1abd61e4b4f78c1c5804840a304a9e32da04.zip |
dmi: Introduce the dmi_get_bios_year() helper function
The pattern to only extract the year portion of date is used in
several places and more users may come.
By using this helper they may create slightly cleaner code.
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
[ Minor stylistic cleanup. ]
Cc: Bjorn Helgaas <bhelgaas@google.com>
Cc: Jean Delvare <jdelvare@suse.com>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Rafael J. Wysocki <rjw@rjwysocki.net>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: linux-acpi@vger.kernel.org
Cc: linux-pci@vger.kernel.org
Link: http://lkml.kernel.org/r/20180222125923.57385-1-andriy.shevchenko@linux.intel.com
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Diffstat (limited to 'arch/x86/pci/direct.c')
0 files changed, 0 insertions, 0 deletions