X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=include%2Ftps6586x.h;h=b89074b8acdb5753ce8558dc53c73cd02a535295;hb=d2e5250be49fce4653689c41a5dc7e2d7e7ecf33;hp=ab880823a378cfc42ff3f094ab7bcb7534970ede;hpb=1aa7e23e2ba41c94d61bcd9199afb23817400f3c;p=platform%2Fkernel%2Fu-boot.git diff --git a/include/tps6586x.h b/include/tps6586x.h index ab88082..b89074b 100644 --- a/include/tps6586x.h +++ b/include/tps6586x.h @@ -1,29 +1,14 @@ +/* SPDX-License-Identifier: GPL-2.0+ */ /* * (C) Copyright 2010,2011 * NVIDIA Corporation - * - * See file CREDITS for list of people who contributed to this - * project. - * - * This program is free software; you can redistribute it and/or - * modify it under the terms of the GNU General Public License as - * published by the Free Software Foundation; either version 2 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program; if not, write to the Free Software - * Foundation, Inc., 59 Temple Place, Suite 330, Boston, - * MA 02111-1307 USA */ -#ifndef __H_ +#ifndef _TPS6586X_H_ #define _TPS6586X_H_ +struct udevice; + enum { /* SM0-2 PWM/PFM Mode Selection */ TPS6586X_PWM_SM0 = 1 << 0, @@ -35,7 +20,7 @@ enum { * Enable PWM mode for selected SM0-2 * * @param mask Mask of synchronous converter to enable (TPS6586X_PWM_...) - * @return 0 if ok, -1 on error + * Return: 0 if ok, -1 on error */ int tps6586x_set_pwm_mode(int mask); @@ -51,7 +36,7 @@ int tps6586x_set_pwm_mode(int mask); * If this condition is not met, no adjustment will be * done and an error will be reported. Use -1 to skip * this check. - * @return 0 if ok, -1 on error + * Return: 0 if ok, -1 on error */ int tps6586x_adjust_sm0_sm1(int sm0_target, int sm1_target, int step, int rate, int min_sm0_over_sm1); @@ -60,9 +45,9 @@ int tps6586x_adjust_sm0_sm1(int sm0_target, int sm1_target, int step, int rate, * Set up the TPS6586X I2C bus number. This will be used for all operations * on the device. This function must be called before using other functions. * - * @param bus I2C bus number containing the TPS6586X chip - * @return 0 (always succeeds) + * @param bus I2C bus containing the TPS6586X chip + * Return: 0 (always succeeds) */ -int tps6586x_init(int bus); +int tps6586x_init(struct udevice *bus); #endif /* _TPS6586X_H_ */