Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 06efcad0 authored by Jeff Garzik's avatar Jeff Garzik
Browse files

Eliminate pointless casts from void* in a few driver irq handlers.



Signed-off-by: default avatarJeff Garzik <jgarzik@redhat.com>
parent 5712cb3d
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -1382,8 +1382,9 @@ static inline void rx_data_av_handler (hrz_dev * dev) {

/********** interrupt handler **********/

static irqreturn_t interrupt_handler(int irq, void *dev_id) {
  hrz_dev * dev = (hrz_dev *) dev_id;
static irqreturn_t interrupt_handler(int irq, void *dev_id)
{
  hrz_dev *dev = dev_id;
  u32 int_source;
  unsigned int irq_ok;
  
+2 −2
Original line number Diff line number Diff line
@@ -381,7 +381,7 @@ static struct tpm_vendor_specific tpm_tis = {

static irqreturn_t tis_int_probe(int irq, void *dev_id)
{
	struct tpm_chip *chip = (struct tpm_chip *) dev_id;
	struct tpm_chip *chip = dev_id;
	u32 interrupt;

	interrupt = ioread32(chip->vendor.iobase +
@@ -401,7 +401,7 @@ static irqreturn_t tis_int_probe(int irq, void *dev_id)

static irqreturn_t tis_int_handler(int irq, void *dev_id)
{
	struct tpm_chip *chip = (struct tpm_chip *) dev_id;
	struct tpm_chip *chip = dev_id;
	u32 interrupt;
	int i;

+1 −1
Original line number Diff line number Diff line
@@ -359,7 +359,7 @@ static int onenand_wait(struct mtd_info *mtd, int state)
 */
static irqreturn_t onenand_interrupt(int irq, void *data)
{
	struct onenand_chip *this = (struct onenand_chip *) data;
	struct onenand_chip *this = data;

	/* To handle shared interrupt */
	if (!this->complete.done)
+1 −1
Original line number Diff line number Diff line
@@ -1801,7 +1801,7 @@ typhoon_poll(struct napi_struct *napi, int budget)
static irqreturn_t
typhoon_interrupt(int irq, void *dev_instance)
{
	struct net_device *dev = (struct net_device *) dev_instance;
	struct net_device *dev = dev_instance;
	struct typhoon *tp = dev->priv;
	void __iomem *ioaddr = tp->ioaddr;
	u32 intr_status;
+1 −1
Original line number Diff line number Diff line
@@ -3607,7 +3607,7 @@ static int ucc_geth_poll(struct napi_struct *napi, int budget)

static irqreturn_t ucc_geth_irq_handler(int irq, void *info)
{
	struct net_device *dev = (struct net_device *)info;
	struct net_device *dev = info;
	struct ucc_geth_private *ugeth = netdev_priv(dev);
	struct ucc_fast_private *uccf;
	struct ucc_geth_info *ug_info;
Loading