diff for duplicates of <1437360145.6255.37.camel@neuling.org> diff --git a/a/1.txt b/N1/1.txt index f4af1a7..3f4c607 100644 --- a/a/1.txt +++ b/N1/1.txt @@ -2,10 +2,10 @@ On Sun, 2015-07-19 at 22:53 +0530, Vaishali Thakkar wrote: > Macro DEFINE_PCI_DEVICE_TABLE is deprecated. So, here use > struct pci_device_id instead of DEFINE_PCI_DEVICE_TABLE with > the goal of getting rid of this macro completely. ->=20 +> > The Coccinelle semantic patch that performs this transformation > is as follows: ->=20 +> > @@ > identifier a; > declarer name DEFINE_PCI_DEVICE_TABLE; @@ -13,8 +13,8 @@ On Sun, 2015-07-19 at 22:53 +0530, Vaishali Thakkar wrote: > @@ > - DEFINE_PCI_DEVICE_TABLE(a) > + const struct pci_device_id a[] -> =3D i; ->=20 +> = i; +> > Signed-off-by: Vaishali Thakkar <vthakkar1994@gmail.com> Looks good, thanks! @@ -25,18 +25,17 @@ Acked-by: Michael Neuling <mikey@neuling.org> > --- > drivers/misc/cxl/pci.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) ->=20 +> > diff --git a/drivers/misc/cxl/pci.c b/drivers/misc/cxl/pci.c > index 32ad097..3ed0621 100644 > --- a/drivers/misc/cxl/pci.c > +++ b/drivers/misc/cxl/pci.c -> @@ -133,7 +133,7 @@ u8 cxl_afu_cr_read8(struct cxl_afu *afu, int cr, u64 = -off) +> @@ -133,7 +133,7 @@ u8 cxl_afu_cr_read8(struct cxl_afu *afu, int cr, u64 off) > return (val >> ((off & 0x3) * 8)) & 0xff; > } -> =20 -> -static DEFINE_PCI_DEVICE_TABLE(cxl_pci_tbl) =3D { -> +static const struct pci_device_id cxl_pci_tbl[] =3D { +> +> -static DEFINE_PCI_DEVICE_TABLE(cxl_pci_tbl) = { +> +static const struct pci_device_id cxl_pci_tbl[] = { > { PCI_DEVICE(PCI_VENDOR_ID_IBM, 0x0477), }, > { PCI_DEVICE(PCI_VENDOR_ID_IBM, 0x044b), }, > { PCI_DEVICE(PCI_VENDOR_ID_IBM, 0x04cf), }, diff --git a/a/content_digest b/N1/content_digest index b80efd8..14b28fd 100644 --- a/a/content_digest +++ b/N1/content_digest @@ -12,10 +12,10 @@ "> Macro DEFINE_PCI_DEVICE_TABLE is deprecated. So, here use\n" "> struct pci_device_id instead of DEFINE_PCI_DEVICE_TABLE with\n" "> the goal of getting rid of this macro completely.\n" - ">=20\n" + "> \n" "> The Coccinelle semantic patch that performs this transformation\n" "> is as follows:\n" - ">=20\n" + "> \n" "> @@\n" "> identifier a;\n" "> declarer name DEFINE_PCI_DEVICE_TABLE;\n" @@ -23,8 +23,8 @@ "> @@\n" "> - DEFINE_PCI_DEVICE_TABLE(a)\n" "> + const struct pci_device_id a[]\n" - "> =3D i;\n" - ">=20\n" + "> = i;\n" + "> \n" "> Signed-off-by: Vaishali Thakkar <vthakkar1994@gmail.com>\n" "\n" "Looks good, thanks!\n" @@ -35,20 +35,19 @@ "> ---\n" "> drivers/misc/cxl/pci.c | 2 +-\n" "> 1 file changed, 1 insertion(+), 1 deletion(-)\n" - ">=20\n" + "> \n" "> diff --git a/drivers/misc/cxl/pci.c b/drivers/misc/cxl/pci.c\n" "> index 32ad097..3ed0621 100644\n" "> --- a/drivers/misc/cxl/pci.c\n" "> +++ b/drivers/misc/cxl/pci.c\n" - "> @@ -133,7 +133,7 @@ u8 cxl_afu_cr_read8(struct cxl_afu *afu, int cr, u64 =\n" - "off)\n" + "> @@ -133,7 +133,7 @@ u8 cxl_afu_cr_read8(struct cxl_afu *afu, int cr, u64 off)\n" "> \treturn (val >> ((off & 0x3) * 8)) & 0xff;\n" "> }\n" - "> =20\n" - "> -static DEFINE_PCI_DEVICE_TABLE(cxl_pci_tbl) =3D {\n" - "> +static const struct pci_device_id cxl_pci_tbl[] =3D {\n" + "> \n" + "> -static DEFINE_PCI_DEVICE_TABLE(cxl_pci_tbl) = {\n" + "> +static const struct pci_device_id cxl_pci_tbl[] = {\n" "> \t{ PCI_DEVICE(PCI_VENDOR_ID_IBM, 0x0477), },\n" "> \t{ PCI_DEVICE(PCI_VENDOR_ID_IBM, 0x044b), },\n" "> \t{ PCI_DEVICE(PCI_VENDOR_ID_IBM, 0x04cf), }," -15c4fe4b61be9d7313d2472b618e04bdf3ed3bcf18112b03e19f34ea31b230e1 +bc38cc3445da78253a3bb3856a222082e5444ad52141cfda42144411c225664d
This is an external index of several public inboxes, see mirroring instructions on how to clone and mirror all data and code used by this external index.