@@ -605,7 +605,7 @@ static int sm750fb_set_drv(struct lynxfb_par *par)crtc->ypanstep=1;crtc->ywrapstep=0;-output->proc_setBLANK=(sm750_dev->revid==SM750LE_REVISION_ID)?+output->proc_set_blank=(sm750_dev->revid==SM750LE_REVISION_ID)?hw_sm750le_set_blank:hw_sm750_set_blank;
Why do we even need this function pointer? Why not just do the check
above when it is called instead of this indirection?
thanks,
greg k-h
Dear Greg,
Here is the updated patch with revised commit message. No code changes.
Please read the documentation for how to send an updated patch (hint, it
needs to be a new version).
Also, see my comments above about what you should do here instead of
just renaming the variable. Please make that change which will remove
the variable entirely.
thanks,
greg k-h
@@ -605,7 +605,7 @@ static int sm750fb_set_drv(struct lynxfb_par *par)crtc->ypanstep=1;crtc->ywrapstep=0;-output->proc_setBLANK=(sm750_dev->revid==SM750LE_REVISION_ID)?+output->proc_set_blank=(sm750_dev->revid==SM750LE_REVISION_ID)?hw_sm750le_set_blank:hw_sm750_set_blank;
Why do we even need this function pointer? Why not just do the check
above when it is called instead of this indirection?
thanks,
greg k-h
Dear Greg,
Here is the updated patch with revised commit message. No code changes.
Please read the documentation for how to send an updated patch (hint, it
needs to be a new version).
Also, see my comments above about what you should do here instead of
just renaming the variable. Please make that change which will remove
the variable entirely.
thanks,
greg k-h
Thank you for feedback.
I was wondering if you could share additional feedback regarding
pros and cons calling a function directly based on the condition instead of the
current implementation?
Regards,
Kisub Choe.
@@ -605,7 +605,7 @@ static int sm750fb_set_drv(struct lynxfb_par *par)crtc->ypanstep=1;crtc->ywrapstep=0;-output->proc_setBLANK=(sm750_dev->revid==SM750LE_REVISION_ID)?+output->proc_set_blank=(sm750_dev->revid==SM750LE_REVISION_ID)?hw_sm750le_set_blank:hw_sm750_set_blank;
Why do we even need this function pointer? Why not just do the check
above when it is called instead of this indirection?
thanks,
greg k-h
Dear Greg,
Here is the updated patch with revised commit message. No code changes.
Please read the documentation for how to send an updated patch (hint, it
needs to be a new version).
Also, see my comments above about what you should do here instead of
just renaming the variable. Please make that change which will remove
the variable entirely.
thanks,
greg k-h
Thank you for feedback.
I was wondering if you could share additional feedback regarding
pros and cons calling a function directly based on the condition instead of the
current implementation?
I'll leave that as an exercise for the reader to complete :)
have fun!
greg k-h
@@ -605,7 +605,7 @@ static int sm750fb_set_drv(struct lynxfb_par *par)crtc->ypanstep=1;crtc->ywrapstep=0;-output->proc_setBLANK=(sm750_dev->revid==SM750LE_REVISION_ID)?+output->proc_set_blank=(sm750_dev->revid==SM750LE_REVISION_ID)?hw_sm750le_set_blank:hw_sm750_set_blank;
Why do we even need this function pointer? Why not just do the check
above when it is called instead of this indirection?
thanks,
greg k-h
Dear Greg,
Here is the updated patch with revised commit message. No code changes.
Please read the documentation for how to send an updated patch (hint, it
needs to be a new version).
Also, see my comments above about what you should do here instead of
just renaming the variable. Please make that change which will remove
the variable entirely.
thanks,
greg k-h
Thank you for feedback.
I was wondering if you could share additional feedback regarding
pros and cons calling a function directly based on the condition instead of the
current implementation?
I'll leave that as an exercise for the reader to complete :)
have fun!
greg k-h
Thank you!
Let me try to make changes and update.
Regards,
Kisub Choe.