diff options
author | Christian Pointner <equinox@helsinki.at> | 2024-05-10 18:52:23 (GMT) |
---|---|---|
committer | Christian Pointner <equinox@helsinki.at> | 2024-05-10 18:52:23 (GMT) |
commit | a641800acf13b5fb1463d4280c3ee7fc267143fb (patch) | |
tree | 248b647a682f71d9eb90d14d24081368ea905a42 /snd-alpx/alpx_led.h | |
parent | cc4badffe0e02d159c21eb90ea080a6a2f90cb4b (diff) |
import whole driver package
Diffstat (limited to 'snd-alpx/alpx_led.h')
-rw-r--r-- | snd-alpx/alpx_led.h | 23 |
1 files changed, 0 insertions, 23 deletions
diff --git a/snd-alpx/alpx_led.h b/snd-alpx/alpx_led.h deleted file mode 100644 index b69d836..0000000 --- a/snd-alpx/alpx_led.h +++ /dev/null @@ -1,23 +0,0 @@ -// SPDX-License-Identifier: GPL-2.0-or-later -/* -* Support for Digigram AlpX PCI-e boards -* -* Copyright (c) 2024 Digigram Digital (info@digigram.com) -*/ - -#ifndef _ALPX_LEDS_H -#define _ALPX_LEDS_H - -#include "alpx.h" - -#include <linux/io.h> - -static inline void alpmadi_set_led_state(struct alpx_device *alpx_dev, bool blink) -{ - writel(blink ? 1 : 0, ALPX_REG(alpx_dev, ALPMADI, CONTROL, BLINK_LED)); - - dev_dbg( alpx_dev->dev,"%s(): LED %s, val:0x%08x/\n", __func__, - blink ? "On":"Off",readl(ALPX_REG(alpx_dev, ALPMADI, CONTROL, BLINK_LED))); -} - -#endif |