sr: remove obsolete SR_DI_INST

This commit is contained in:
Bert Vermeulen 2012-07-25 00:33:38 +02:00
parent 48a486cd3e
commit 6f57fd9694
9 changed files with 7 additions and 30 deletions

View File

@ -786,9 +786,6 @@ static int hw_info_get(int info_id, const void **data,
struct context *ctx;
switch (info_id) {
case SR_DI_INST:
*data = sdi;
break;
case SR_DI_HWCAPS:
*data = hwcaps;
break;

View File

@ -271,10 +271,6 @@ static int hw_info_get(int info_id, const void **data,
struct context *ctx;
switch (info_id) {
case SR_DI_INST:
*data = sdi;
sr_spew("la8: %s: Returning sdi.", __func__);
break;
case SR_DI_HWCAPS:
*data = hwcaps;
break;

View File

@ -209,10 +209,9 @@ static int hw_info_get(int info_id, const void **data,
const struct sr_dev_inst *sdi)
{
(void)sdi;
switch (info_id) {
case SR_DI_INST:
*data = sdi;
break;
case SR_DI_HWCAPS:
*data = hwcaps;
break;

View File

@ -600,9 +600,6 @@ static int hw_info_get(int info_id, const void **data,
struct context *ctx;
switch (info_id) {
case SR_DI_INST:
*data = sdi;
break;
case SR_DI_HWCAPS:
*data = hwcaps;
break;

View File

@ -431,11 +431,10 @@ static int hw_info_get(int info_id, const void **data,
{
struct context *ctx;
(void)sdi;
(void)ctx;
switch (info_id) {
case SR_DI_INST:
*data = sdi;
sr_spew("genericdmm: Returning sdi.");
break;
case SR_DI_HWOPTS:
*data = hwopts;
break;

View File

@ -397,10 +397,9 @@ static int hw_info_get(int info_id, const void **data,
{
uint64_t tmp;
(void)sdi;
switch (info_id) {
case SR_DI_INST:
*data = sdi;
break;
case SR_DI_HWCAPS:
*data = hwcaps;
break;

View File

@ -579,9 +579,6 @@ static int hw_info_get(int info_id, const void **data,
struct context *ctx;
switch (info_id) {
case SR_DI_INST:
*data = sdi;
break;
case SR_DI_HWCAPS:
*data = hwcaps;
break;

View File

@ -463,10 +463,6 @@ static int hw_info_get(int info_id, const void **data,
struct context *ctx;
switch (info_id) {
case SR_DI_INST:
*data = sdi;
sr_spew("zp: %s: Returning sdi.", __func__);
break;
case SR_DI_HWCAPS:
*data = hwcaps;
break;

View File

@ -436,9 +436,6 @@ enum {
/* Device info IDs */
enum {
/* struct sr_dev_inst for this specific device */
/* TODO: obsolete */
SR_DI_INST,
/* A list of options supported by the driver. */
SR_DI_HWOPTS,
/* A list of capabilities supported by the device. */