projects
/
oweals
/
u-boot.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
pci: Make Rockchip PCIe voltage regulators optional
[oweals/u-boot.git]
/
drivers
/
adc
/
stm32-adc-core.c
diff --git
a/drivers/adc/stm32-adc-core.c
b/drivers/adc/stm32-adc-core.c
index a9aa143bfe7bc0979355096a5ab55c0b41eaf808..31bbb6f9d68c934dfa57d9681a840372f53ab23e 100644
(file)
--- a/
drivers/adc/stm32-adc-core.c
+++ b/
drivers/adc/stm32-adc-core.c
@@
-8,6
+8,8
@@
#include <common.h>
#include <asm/io.h>
#include <common.h>
#include <asm/io.h>
+#include <dm/device_compat.h>
+#include <linux/bitops.h>
#include <power/regulator.h>
#include "stm32-adc-core.h"
#include <power/regulator.h>
#include "stm32-adc-core.h"
@@
-60,7
+62,8
@@
static int stm32h7_adc_clk_sel(struct udevice *dev,
{
u32 ckmode, presc;
unsigned long rate;
{
u32 ckmode, presc;
unsigned long rate;
- int i, div;
+ unsigned int i;
+ int div;
/* stm32h7 bus clock is common for all ADC instances (mandatory) */
if (!clk_valid(&common->bclk)) {
/* stm32h7 bus clock is common for all ADC instances (mandatory) */
if (!clk_valid(&common->bclk)) {