cregit-Linux how code gets into the kernel

Release 4.11 drivers/rtc/rtc-generic.c

Directory: drivers/rtc
/* rtc-generic: RTC driver using the generic RTC abstraction
 *
 * Copyright (C) 2008 Kyle McMartin <kyle@mcmartin.ca>
 */

#include <linux/kernel.h>
#include <linux/module.h>
#include <linux/time.h>
#include <linux/platform_device.h>
#include <linux/rtc.h>


static int __init generic_rtc_probe(struct platform_device *dev) { struct rtc_device *rtc; const struct rtc_class_ops *ops = dev_get_platdata(&dev->dev); rtc = devm_rtc_device_register(&dev->dev, "rtc-generic", ops, THIS_MODULE); if (IS_ERR(rtc)) return PTR_ERR(rtc); platform_set_drvdata(dev, rtc); return 0; }

Contributors

PersonTokensPropCommitsCommitProp
Kyle McMartin4361.43%111.11%
Arnd Bergmann1521.43%222.22%
dann frazier811.43%444.44%
Jingoo Han34.29%111.11%
Geert Uytterhoeven11.43%111.11%
Total70100.00%9100.00%

static struct platform_driver generic_rtc_driver = { .driver = { .name = "rtc-generic", }, }; module_platform_driver_probe(generic_rtc_driver, generic_rtc_probe); MODULE_AUTHOR("Kyle McMartin <kyle@mcmartin.ca>"); MODULE_LICENSE("GPL"); MODULE_DESCRIPTION("Generic RTC driver"); MODULE_ALIAS("platform:rtc-generic");

Overall Contributors

PersonTokensPropCommitsCommitProp
Kyle McMartin8968.46%18.33%
Arnd Bergmann1511.54%216.67%
Geert Uytterhoeven129.23%216.67%
dann frazier107.69%541.67%
Jingoo Han43.08%216.67%
Total130100.00%12100.00%
Directory: drivers/rtc
Information contained on this website is for historical information purposes only and does not indicate or represent copyright ownership.
Created with cregit.