|
@@ -18,6 +18,7 @@
|
|
|
#include <linux/init.h>
|
|
|
#include <linux/module.h>
|
|
|
#include <linux/clk.h>
|
|
|
+#include <linux/kernel.h>
|
|
|
#include <linux/pm_runtime.h>
|
|
|
#include <linux/regmap.h>
|
|
|
#include <linux/regulator/consumer.h>
|
|
@@ -31,8 +32,6 @@
|
|
|
|
|
|
#define DIV_ROUND_DOWN_ULL(ll, d) \
|
|
|
({ unsigned long long _tmp = (ll); do_div(_tmp, d); _tmp; })
|
|
|
-#define DIV_ROUND_CLOSEST_ULL(ll, d) \
|
|
|
- ({ unsigned long long _tmp = (ll)+(d)/2; do_div(_tmp, d); _tmp; })
|
|
|
|
|
|
#define PCM512x_NUM_SUPPLIES 3
|
|
|
static const char * const pcm512x_supply_names[PCM512x_NUM_SUPPLIES] = {
|