mc13783: rename mc13783_{{un,}mask,ack_irq} to have a mc13783_irq prefix
In the source file group these functions together. The mc13783 header file provides fallback implementations for the old names to prevent build failures. When all users of the old names are fixed to use the new names these can go away. Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de> Cc: Alessandro Zummo <a.zummo@towertech.it> Cc: Paul Gortmaker <p_gortmaker@yahoo.com> Cc: Valentin Longchamp <valentin.longchamp@epfl.ch> Cc: Sascha Hauer <s.hauer@pengutronix.de> Cc: Samuel Ortiz <sameo@linux.intel.com> Cc: Dmitry Torokhov <dmitry.torokhov@gmail.com> Cc: Luotao Fu <l.fu@pengutronix.de> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:
parent
2a7a06a0cd
commit
57205026da
2 changed files with 40 additions and 22 deletions
|
|
@ -26,10 +26,28 @@ int mc13783_irq_request(struct mc13783 *mc13783, int irq,
|
|||
int mc13783_irq_request_nounmask(struct mc13783 *mc13783, int irq,
|
||||
irq_handler_t handler, const char *name, void *dev);
|
||||
int mc13783_irq_free(struct mc13783 *mc13783, int irq, void *dev);
|
||||
int mc13783_ackirq(struct mc13783 *mc13783, int irq);
|
||||
|
||||
int mc13783_mask(struct mc13783 *mc13783, int irq);
|
||||
int mc13783_unmask(struct mc13783 *mc13783, int irq);
|
||||
int mc13783_irq_mask(struct mc13783 *mc13783, int irq);
|
||||
int mc13783_irq_unmask(struct mc13783 *mc13783, int irq);
|
||||
int mc13783_irq_ack(struct mc13783 *mc13783, int irq);
|
||||
|
||||
static inline int mc13783_mask(struct mc13783 *mc13783, int irq) __deprecated;
|
||||
static inline int mc13783_mask(struct mc13783 *mc13783, int irq)
|
||||
{
|
||||
return mc13783_irq_mask(mc13783, irq);
|
||||
}
|
||||
|
||||
static inline int mc13783_unmask(struct mc13783 *mc13783, int irq) __deprecated;
|
||||
static inline int mc13783_unmask(struct mc13783 *mc13783, int irq)
|
||||
{
|
||||
return mc13783_irq_unmask(mc13783, irq);
|
||||
}
|
||||
|
||||
static inline int mc13783_ackirq(struct mc13783 *mc13783, int irq) __deprecated;
|
||||
static inline int mc13783_ackirq(struct mc13783 *mc13783, int irq)
|
||||
{
|
||||
return mc13783_irq_ack(mc13783, irq);
|
||||
}
|
||||
|
||||
#define MC13783_ADC0 43
|
||||
#define MC13783_ADC0_ADREFEN (1 << 10)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue