more separation

This commit is contained in:
2025-06-13 12:56:21 +01:00
parent 46acdf410e
commit 738d2ffa8e
6 changed files with 26 additions and 9 deletions

View File

@ -3,21 +3,21 @@
#include <linux/platform_device.h>
#include <linux/spi/spi.h>
#include "ls7366r.h"
#include "trigger.h"
#include "leds.h"
MODULE_LICENSE("GPL");
MODULE_AUTHOR("Wolfgang Hottgenroth");
MODULE_DESCRIPTION("Driver for the MainsCnt measurement hat");
extern struct platform_driver leds_driver;
extern struct spi_driver ls7366r_driver;
extern struct platform_driver interrupt_driver;
/* module loading and unloading */
static int __init my_init(void) {
printk("counter - Loading the leds driver...\n");
if(platform_driver_register(&leds_driver)) {
printk("dt_gpio - Error! Could not load leds driver\n");
printk("counter - Error! Could not load leds driver\n");
return -1;
}
@ -29,7 +29,7 @@ static int __init my_init(void) {
printk("counter - Loading the interrupt driver...\n");
if(platform_driver_register(&interrupt_driver)) {
printk("dt_gpio - Error! Could not load interrupt driver\n");
printk("counter - Error! Could not load interrupt driver\n");
return -1;
}