Subversion Repositories Kolibri OS

Rev

Rev 6082 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 6082 Rev 6936
Line 177... Line 177...
177
struct pwm_device *pwm_get(struct device *dev, const char *con_id);
177
struct pwm_device *pwm_get(struct device *dev, const char *con_id);
178
struct pwm_device *of_pwm_get(struct device_node *np, const char *con_id);
178
struct pwm_device *of_pwm_get(struct device_node *np, const char *con_id);
179
void pwm_put(struct pwm_device *pwm);
179
void pwm_put(struct pwm_device *pwm);
Line 180... Line 180...
180
 
180
 
-
 
181
struct pwm_device *devm_pwm_get(struct device *dev, const char *con_id);
-
 
182
struct pwm_device *devm_of_pwm_get(struct device *dev, struct device_node *np,
181
struct pwm_device *devm_pwm_get(struct device *dev, const char *con_id);
183
				   const char *con_id);
Line 182... Line 184...
182
void devm_pwm_put(struct device *dev, struct pwm_device *pwm);
184
void devm_pwm_put(struct device *dev, struct pwm_device *pwm);
183
 
185
 
184
bool pwm_can_sleep(struct pwm_device *pwm);
186
bool pwm_can_sleep(struct pwm_device *pwm);
Line 190... Line 192...
190
 
192
 
191
static inline void *pwm_get_chip_data(struct pwm_device *pwm)
193
static inline void *pwm_get_chip_data(struct pwm_device *pwm)
192
{
194
{
193
	return NULL;
195
	return NULL;
-
 
196
}
-
 
197
 
-
 
198
static inline int pwmchip_add(struct pwm_chip *chip)
-
 
199
{
-
 
200
	return -EINVAL;
-
 
201
}
-
 
202
 
-
 
203
static inline int pwmchip_add_inversed(struct pwm_chip *chip)
-
 
204
{
-
 
205
	return -EINVAL;
-
 
206
}
-
 
207
 
-
 
208
static inline int pwmchip_remove(struct pwm_chip *chip)
-
 
209
{
-
 
210
	return -EINVAL;
-
 
211
}
-
 
212
 
-
 
213
static inline struct pwm_device *pwm_request_from_chip(struct pwm_chip *chip,
-
 
214
						       unsigned int index,
-
 
215
						       const char *label)
-
 
216
{
-
 
217
	return ERR_PTR(-ENODEV);
-
 
218
}
194
}
219
 
195
static inline struct pwm_device *pwm_get(struct device *dev,
220
static inline struct pwm_device *pwm_get(struct device *dev,
196
					 const char *consumer)
221
					 const char *consumer)
197
{
222
{
198
	return ERR_PTR(-ENODEV);
223
	return ERR_PTR(-ENODEV);
-
 
224
}
-
 
225
 
199
}
226
 
200
static inline void pwm_put(struct pwm_device *pwm)
227
static inline void pwm_put(struct pwm_device *pwm)
201
{
228
{
Line 202... Line 229...
202
}
229
}
203
 
230
 
204
static inline struct pwm_device *devm_pwm_get(struct device *dev,
231
static inline struct pwm_device *devm_pwm_get(struct device *dev,
205
					      const char *consumer)
232
					      const char *consumer)
206
{
233
{
-
 
234
	return ERR_PTR(-ENODEV);
-
 
235
}
207
	return ERR_PTR(-ENODEV);
236
 
208
}
237
 
209
static inline void devm_pwm_put(struct device *dev, struct pwm_device *pwm)
238
static inline void devm_pwm_put(struct device *dev, struct pwm_device *pwm)
Line 210... Line 239...
210
{
239
{