linux/drivers/net/dsa/qca/qca8k-leds.c

// SPDX-License-Identifier: GPL-2.0
#include <linux/property.h>
#include <linux/regmap.h>
#include <net/dsa.h>

#include "qca8k.h"
#include "qca8k_leds.h"

static u32 qca8k_phy_to_port(int phy)
{}

static int
qca8k_get_enable_led_reg(int port_num, int led_num, struct qca8k_led_pattern_en *reg_info)
{}

static int
qca8k_get_control_led_reg(int port_num, int led_num, struct qca8k_led_pattern_en *reg_info)
{}

static int
qca8k_parse_netdev(unsigned long rules, u32 *offload_trigger)
{}

static int
qca8k_led_brightness_set(struct qca8k_led *led,
			 enum led_brightness brightness)
{}

static int
qca8k_cled_brightness_set_blocking(struct led_classdev *ldev,
				   enum led_brightness brightness)
{}

static enum led_brightness
qca8k_led_brightness_get(struct qca8k_led *led)
{}

static int
qca8k_cled_blink_set(struct led_classdev *ldev,
		     unsigned long *delay_on,
		     unsigned long *delay_off)
{}

static int
qca8k_cled_trigger_offload(struct led_classdev *ldev, bool enable)
{}

static bool
qca8k_cled_hw_control_status(struct led_classdev *ldev)
{}

static int
qca8k_cled_hw_control_is_supported(struct led_classdev *ldev, unsigned long rules)
{}

static int
qca8k_cled_hw_control_set(struct led_classdev *ldev, unsigned long rules)
{}

static int
qca8k_cled_hw_control_get(struct led_classdev *ldev, unsigned long *rules)
{}

static struct device *qca8k_cled_hw_control_get_device(struct led_classdev *ldev)
{}

static int
qca8k_parse_port_leds(struct qca8k_priv *priv, struct fwnode_handle *port, int port_num)
{}

int
qca8k_setup_led_ctrl(struct qca8k_priv *priv)
{}