blob: 2568015fc8ca7fac6b06afd8e30bc690a6cf7c7b [file]
/* SPDX-License-Identifier: (GPL-2.0+ OR MIT) */
/*
* Copyright (C) 2018 Google, Inc.
*/
#ifndef __LINUX_LP5018_H
#define __LINUX_LP5018_H
#define LP5018_I2C_NAME "lp5018_led"
#define AW_DEBUG (1)
#if AW_DEBUG
#define AW_LOG(fmt, args...) pr_info("[%s] %s %d: " fmt, LP5018_I2C_NAME, \
__func__, __LINE__, ##args)
#else
#define AW_LOG(fmt, args...)
#endif
#define AW_ERR(fmt, args...) pr_err("[%s] %s %d: " fmt, LP5018_I2C_NAME, \
__func__, __LINE__, ##args)
#define MAX_NUM_LED 8
struct lp5018_platform_data {
int num_leds;
int reset_gpio;
int start_num[MAX_NUM_LED];
int default_current_limit_percent;
};
#endif /* __LINUX_LP5018_H */